comparison UI/UIRest.cpp @ 1396:e6908823897f

Research on #62
author Nomad
date Thu, 18 Jul 2013 17:29:20 +0200
parents d6cf8ead9242
children 7ef4b64f6329
comparison
equal deleted inserted replaced
1395:8d4ec56416ef 1396:e6908823897f
33 viewparams->bRedrawGameUI = true; 33 viewparams->bRedrawGameUI = true;
34 } 34 }
35 pEventTimer->Pause(); 35 pEventTimer->Pause();
36 if ( dword_506F14 != 2 ) 36 if ( dword_506F14 != 2 )
37 GUIWindow::Create(518, 450, 0, 0, WINDOW_PressedButton2, (int)pBtn_Rest, 0); 37 GUIWindow::Create(518, 450, 0, 0, WINDOW_PressedButton2, (int)pBtn_Rest, 0);
38 _506F18_num_hours_to_sleep = 0; 38 _506F18_num_minutes_to_sleep = 0;
39 dword_506F14 = 0; 39 dword_506F14 = 0;
40 uRestUI_FoodRequiredToRest = 2; 40 uRestUI_FoodRequiredToRest = 2;
41 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) 41 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor)
42 uRestUI_FoodRequiredToRest = pOutdoor->GetNumFoodRequiredToRestInCurrentPos(pParty->vPosition.x, pParty->vPosition.y, pParty->vPosition.z); 42 uRestUI_FoodRequiredToRest = pOutdoor->GetNumFoodRequiredToRestInCurrentPos(pParty->vPosition.x, pParty->vPosition.y, pParty->vPosition.z);
43 if ( PartyHasDragon() ) 43 if ( PartyHasDragon() )