comparison mm7_5.cpp @ 1402:a519a6a412d0

CloseSpellBook and close SpellBookPage
author Ritor1
date Fri, 19 Jul 2013 17:21:40 +0600
parents eb02a65e5c82
children 7cc3b01a92ac
comparison
equal deleted inserted replaced
1401:3161094869e0 1402:a519a6a412d0
2710 { 2710 {
2711 ++uAction; 2711 ++uAction;
2712 if ( uAction >= (signed int)pNPCData4 ) 2712 if ( uAction >= (signed int)pNPCData4 )
2713 uAction = 0; 2713 uAction = 0;
2714 } 2714 }
2715 sub_41140B(); 2715 OnCloseSpellBookPage();
2716 pPlayers[uActiveCharacter]->lastOpenedSpellbookPage = LOBYTE(v217[uAction]); 2716 pPlayers[uActiveCharacter]->lastOpenedSpellbookPage = LOBYTE(v217[uAction]);
2717 pGUIWindow_CurrentMenu->OpenSpellBook(); 2717 pGUIWindow_CurrentMenu->OpenSpellBook();
2718 v127 = rand() % 2 + 204; 2718 v127 = rand() % 2 + 204;
2719 pAudioPlayer->PlaySound((SoundID)v127, 0, 0, -1, 0, 0, 0, 0); 2719 pAudioPlayer->PlaySound((SoundID)v127, 0, 0, -1, 0, 0, 0, 0);
2720 continue; 2720 continue;
2721 case UIMSG_OpenSpellbookPage: 2721 case UIMSG_OpenSpellbookPage:
2722 if ( pTurnEngine->turn_stage == 3 || !uActiveCharacter || uMessageParam == pPlayers[uActiveCharacter]->lastOpenedSpellbookPage ) 2722 if ( pTurnEngine->turn_stage == 3 || !uActiveCharacter || uMessageParam == pPlayers[uActiveCharacter]->lastOpenedSpellbookPage )
2723 continue; 2723 continue;
2724 sub_41140B(); 2724 OnCloseSpellBookPage();
2725 pPlayers[uActiveCharacter]->lastOpenedSpellbookPage = uMessageParam; 2725 pPlayers[uActiveCharacter]->lastOpenedSpellbookPage = uMessageParam;
2726 pGUIWindow_CurrentMenu->OpenSpellBook(); 2726 pGUIWindow_CurrentMenu->OpenSpellBook();
2727 v127 = rand() % 2 + 204; 2727 v127 = rand() % 2 + 204;
2728 pAudioPlayer->PlaySound((SoundID)v127, 0, 0, -1, 0, 0, 0, 0); 2728 pAudioPlayer->PlaySound((SoundID)v127, 0, 0, -1, 0, 0, 0, 0);
2729 continue; 2729 continue;