comparison mm7_4.cpp @ 481:5b6e2021c6fe

HOUSE_ID
author Ritor1
date Tue, 26 Feb 2013 17:24:53 +0600
parents d4ea191229ff
children 4bd56919f075 9b4bdf6089af
comparison
equal deleted inserted replaced
480:d4ea191229ff 481:5b6e2021c6fe
9190 if ( !dword_F8B1E4 ) 9190 if ( !dword_F8B1E4 )
9191 return; 9191 return;
9192 } 9192 }
9193 else 9193 else
9194 { 9194 {
9195 if ( in_current_bilding_type != BildingType_Tample ) 9195 if ( in_current_bilding_type != BildingType_Temple )
9196 return; 9196 return;
9197 } 9197 }
9198 v1 = (unsigned int)window_SpeakInHouse->ptr_1C; 9198 v1 = (unsigned int)window_SpeakInHouse->ptr_1C;
9199 LABEL_28: 9199 LABEL_28:
9200 HousePlaySomeSound(v1, v0); 9200 HousePlaySomeSound(v1, v0);
14329 } 14329 }
14330 14330
14331 14331
14332 14332
14333 //----- (0044622E) -------------------------------------------------------- 14333 //----- (0044622E) --------------------------------------------------------
14334 bool __fastcall EnterHouse(HOUSE_ID uHouseID) 14334 bool __fastcall EnterHouse(enum HOUSE_ID uHouseID)
14335 { 14335 {
14336 //enum HOUSE_ID v1; // edi@1 14336 //enum HOUSE_ID v1; // edi@1
14337 //int v2; // edi@5 14337 //int v2; // edi@5
14338 unsigned int uOpenTime; // eax@5 14338 unsigned int uOpenTime; // eax@5
14339 int uCloseTime; // esi@5 14339 int uCloseTime; // esi@5
14441 uCurrentHouse_Animation = (signed __int16)p2DEvents[186].uAnimationID; 14441 uCurrentHouse_Animation = (signed __int16)p2DEvents[186].uAnimationID;
14442 //v25 = HOUSE_187; 14442 //v25 = HOUSE_187;
14443 uHouseID = HOUSE_JAIL; 14443 uHouseID = HOUSE_JAIL;
14444 v12 = LODWORD(pParty->uTimePlayed); 14444 v12 = LODWORD(pParty->uTimePlayed);
14445 LODWORD(pParty->uTimePlayed) += 0x7620000u; 14445 LODWORD(pParty->uTimePlayed) += 0x7620000u;
14446 v14 = LOBYTE(pAnimatedRooms[(signed __int16)p2DEvents[HOUSE_186].uAnimationID].field_C); 14446 v14 = LOBYTE(pAnimatedRooms[(signed __int16)p2DEvents[HOUSE_LORD_AND_JUDGE].uAnimationID].field_C);
14447 pParty->uTimePlayed = __PAIR__(HIDWORD(pParty->uTimePlayed), v12) + 0x7620000; 14447 pParty->uTimePlayed = __PAIR__(HIDWORD(pParty->uTimePlayed), v12) + 0x7620000;
14448 in_current_bilding_type = v14; 14448 in_current_bilding_type = v14;
14449 //v13 = pParty->pPlayers;//[0].uNumDivineInterventionCastsThisDay; 14449 //v13 = pParty->pPlayers;//[0].uNumDivineInterventionCastsThisDay;
14450 //do 14450 //do
14451 ++pParty->uNumPrisonTerms; 14451 ++pParty->uNumPrisonTerms;