Mercurial > mm7
comparison mm7_5.cpp @ 907:f3ccfc765502
RentRoom
author | Ritor1 |
---|---|
date | Sun, 21 Apr 2013 19:22:42 +0600 |
parents | 393a83dcc359 |
children | 8cd0b155bebe |
comparison
equal
deleted
inserted
replaced
906:23655ae9cd18 | 907:f3ccfc765502 |
---|---|
2537 GUIWindow::Create(pButton_RestUI_Wait1Hour->uX, pButton_RestUI_Wait1Hour->uY, 0, 0, WINDOW_5A, | 2537 GUIWindow::Create(pButton_RestUI_Wait1Hour->uX, pButton_RestUI_Wait1Hour->uY, 0, 0, WINDOW_5A, |
2538 (int)pButton_RestUI_Wait1Hour, (int)pGlobalTXT_LocalizationStrings[239]);// "Wait 1 Hour" | 2538 (int)pButton_RestUI_Wait1Hour, (int)pGlobalTXT_LocalizationStrings[239]);// "Wait 1 Hour" |
2539 dword_506F14 = v0; | 2539 dword_506F14 = v0; |
2540 _506F18_num_hours_to_sleep = 60; | 2540 _506F18_num_hours_to_sleep = 60; |
2541 continue; | 2541 continue; |
2542 case UIMSG_OpenRestUI: | 2542 case UIMSG_RentRoom: |
2543 dword_506F14 = 2; | 2543 dword_506F14 = 2; |
2544 RestUI_Initialize(); | 2544 RestUI_Initialize(); |
2545 v86 = 60 * (_494820_training_time(pParty->uCurrentHour) + 1) - pParty->uCurrentMinute; | 2545 v86 = 60 * (_494820_training_time(pParty->uCurrentHour) + 1) - pParty->uCurrentMinute; |
2546 _506F18_num_hours_to_sleep = v86; | 2546 _506F18_num_hours_to_sleep = v86; |
2547 if ( uMessageParam == 111 || uMessageParam == 114 || uMessageParam == 116 ) | 2547 if ( uMessageParam == 111 || uMessageParam == 114 || uMessageParam == 116 ) |
2553 pParty->pPlayers[3].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; | 2553 pParty->pPlayers[3].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; |
2554 pParty->pPlayers[2].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; | 2554 pParty->pPlayers[2].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; |
2555 pParty->pPlayers[1].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; | 2555 pParty->pPlayers[1].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; |
2556 pParty->pPlayers[0].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; | 2556 pParty->pPlayers[0].pConditions[Player::Condition_Sleep] = pParty->uTimePlayed; |
2557 continue; | 2557 continue; |
2558 case UIMSG_68: | 2558 case UIMSG_RestWindow: |
2559 if ( pMessageQueue_50CBD0->uNumMessages ) | 2559 if ( pMessageQueue_50CBD0->uNumMessages ) |
2560 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 2560 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
2561 if ( pCurrentScreen ) | 2561 if ( pCurrentScreen ) |
2562 continue; | 2562 continue; |
2563 if ( sub_42F4DA() ) | 2563 if ( sub_42F4DA() ) |
2618 continue; | 2618 continue; |
2619 } | 2619 } |
2620 v176 = 0; | 2620 v176 = 0; |
2621 v160 = 13; | 2621 v160 = 13; |
2622 goto LABEL_619; | 2622 goto LABEL_619; |
2623 case UIMSG_61: | 2623 case UIMSG_Rest8Hour: |
2624 if ( dword_506F14 ) | 2624 if ( dword_506F14 ) |
2625 //goto LABEL_621; | 2625 //goto LABEL_621; |
2626 { | 2626 { |
2627 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" | 2627 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" |
2628 ShowStatusBarString(v96, 2); | 2628 ShowStatusBarString(v96, 2); |
2911 v79 = uMessageParam; | 2911 v79 = uMessageParam; |
2912 //LABEL_679: | 2912 //LABEL_679: |
2913 _42777D_CastSpell_UseWand_ShootArrow(v79, v80, v147, v159, v175); | 2913 _42777D_CastSpell_UseWand_ShootArrow(v79, v80, v147, v159, v175); |
2914 } | 2914 } |
2915 continue; | 2915 continue; |
2916 case UIMSG_69: | 2916 case UIMSG_SpellBookWindow: |
2917 if ( pTurnEngine->field_4 == 3 ) | 2917 if ( pTurnEngine->field_4 == 3 ) |
2918 continue; | 2918 continue; |
2919 if ( bUnderwater == 1 ) | 2919 if ( bUnderwater == 1 ) |
2920 { | 2920 { |
2921 ShowStatusBarString(pGlobalTXT_LocalizationStrings[652], 2);// "You can not do that while you are underwater!" | 2921 ShowStatusBarString(pGlobalTXT_LocalizationStrings[652], 2);// "You can not do that while you are underwater!" |