Mercurial > mm7
comparison mm7_5.cpp @ 1273:fbb7428fa58c
PlayerCreation_ComputeAttributeBonus cleanup
Player::IncreaseAttribute cleanup
author | Grumpy7 |
---|---|
date | Sat, 15 Jun 2013 03:00:36 +0200 |
parents | 2929c4406d2c |
children | c423f946dc99 |
comparison
equal
deleted
inserted
replaced
1272:19a4809e1da0 | 1273:fbb7428fa58c |
---|---|
3407 pPlayer[uPlayerCreationUI_SelectedCharacter].Reset((PLAYER_CLASS_TYPE)pParam); | 3407 pPlayer[uPlayerCreationUI_SelectedCharacter].Reset((PLAYER_CLASS_TYPE)pParam); |
3408 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0); | 3408 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0); |
3409 break; | 3409 break; |
3410 case UIMSG_PlayerCreationClickOK: | 3410 case UIMSG_PlayerCreationClickOK: |
3411 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); | 3411 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); |
3412 if ( PlayerCreation_ComputeAttributeBonus() || !PlayerCreation_Chose4Skills() ) | 3412 if ( PlayerCreation_GetUnspentAttributePointCount() || !PlayerCreation_Chose4Skills() ) |
3413 GameUI_Footer_TimeLeft = GetTickCount() + 4000; | 3413 GameUI_Footer_TimeLeft = GetTickCount() + 4000; |
3414 else | 3414 else |
3415 uGameState = GAME_STATE_STARTING_NEW_GAME; | 3415 uGameState = GAME_STATE_STARTING_NEW_GAME; |
3416 break; | 3416 break; |
3417 case UIMSG_PlayerCreationClickReset: | 3417 case UIMSG_PlayerCreationClickReset: |