Mercurial > mm7
diff Chest.cpp @ 1408:204cce84300b
FindSound
author | Ritor1 |
---|---|
date | Fri, 26 Jul 2013 18:11:36 +0600 |
parents | d4f57df4c299 |
children | 110eac219e5a b67a3e0d6fc3 |
line wrap: on
line diff
--- a/Chest.cpp Tue Jul 23 16:34:00 2013 +0600 +++ b/Chest.cpp Fri Jul 26 18:11:36 2013 +0600 @@ -166,14 +166,14 @@ pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); pSpellObject.ExplosionTraps(); chest->uFlags &= 0xFEu; - if ( uActiveCharacter && !qword_A750D8 && !dword_507CD8 ) + if ( uActiveCharacter && !qword_A750D8 && !OpenedTelekinesis ) { qword_A750D8 = 256i64; PlayerSpeechID = SPEECH_5; uSpeakingCharacter = uActiveCharacter; } pIcons_LOD->RemoveTexturesPackFromTextureList(); - dword_507CD8 = 0; + OpenedTelekinesis = false; return false; } chest->uFlags &= 0xFEu; @@ -183,10 +183,10 @@ pAudioPlayer->PlaySound(SOUND_OpenChest, 0, 0, -1, 0, 0, 0, 0); if ( flag_shout == true ) { - if ( !dword_507CD8 ) + if ( !OpenedTelekinesis ) pPlayers[uActiveCharacter]->PlaySound(SPEECH_4, 0); } - dword_507CD8 = 0; + OpenedTelekinesis = false; pChestWindow = pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_Chest, uChestID, 0); pBtn_ExitCancel = pChestWindow->CreateButton(471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], pIcons_LOD->GetTexture(uExitCancelTextureId), 0);// Exit pChestWindow->CreateButton( 7, 8, 460, 343, 1, 0, UIMSG_CHEST_ClickItem, 0, 0, "", 0);