comparison mm7_5.cpp @ 1012:9e823ad5eaa6

second msg_queue returned
author Gloval
date Sun, 19 May 2013 12:13:42 +0400
parents e865f349aa41
children a704435d3285
comparison
equal deleted inserted replaced
1011:f85a8305a57c 1012:9e823ad5eaa6
2801 dword_50C9EC[3 * dword_50C9E8] = UIMSG_CastSpellFromBook; 2801 dword_50C9EC[3 * dword_50C9E8] = UIMSG_CastSpellFromBook;
2802 dword_50C9EC[3 * dword_50C9E8 + 1] = v103; 2802 dword_50C9EC[3 * dword_50C9E8 + 1] = v103;
2803 dword_50C9EC[3 * dword_50C9E8 + 2] = uActiveCharacter - 1; 2803 dword_50C9EC[3 * dword_50C9E8 + 2] = uActiveCharacter - 1;
2804 ++dword_50C9E8; 2804 ++dword_50C9E8;
2805 }*/ 2805 }*/
2806 pMessageQueue_50CBD0->AddMessage(UIMSG_CastSpellFromBook, v103, uActiveCharacter - 1); 2806 pMessageQueue_50C9E8->AddMessage(UIMSG_CastSpellFromBook, v103, uActiveCharacter - 1);
2807 // pMessageQueue_50CBD0->AddMessage(UIMSG_CastSpellFromBook, v103, uActiveCharacter - 1);
2807 } 2808 }
2808 else 2809 else
2809 { 2810 {
2810 byte_506550 = 1; 2811 byte_506550 = 1;
2811 quick_spell_at_page = uMessageParam + 1; 2812 quick_spell_at_page = uMessageParam + 1;
3259 default: 3260 default:
3260 continue; 3261 continue;
3261 } 3262 }
3262 } 3263 }
3263 } 3264 }
3264 pMessageQueue_50CBD0->uNumMessages = dword_50C9E8; 3265 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50C9E8->uNumMessages;//dword_50C9E8;
3265 memcpy(pMessageQueue_50CBD0->pMessages, dword_50C9EC, 12 * dword_50C9E8); 3266 memcpy(pMessageQueue_50CBD0->pMessages, pMessageQueue_50C9E8->pMessages, sizeof(GUIMessage) * pMessageQueue_50C9E8->uNumMessages);
3266 dword_50C9E8 = 0; 3267 //memcpy(pMessageQueue_50CBD0->pMessages, dword_50C9EC, 12 * dword_50C9E8);
3268 //dword_50C9E8 = 0;
3269
3270
3271 pMessageQueue_50C9E8->uNumMessages=0;
3267 if ( dword_50C9DC ) 3272 if ( dword_50C9DC )
3268 { 3273 {
3269 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 3274 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
3270 { 3275 {
3271 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)dword_50C9DC; 3276 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)dword_50C9DC;
10889 v0->RemoveItemAtInventoryIndex(v18); 10894 v0->RemoveItemAtInventoryIndex(v18);
10890 v0->SetCondition(0x10u, 0); 10895 v0->SetCondition(0x10u, 0);
10891 v23 = 0; 10896 v23 = 0;
10892 } 10897 }
10893 } 10898 }
10894 v0->_4160CA(v23); 10899 v0->ItemsEnchant(v23);
10895 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); 10900 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0);
10896 10901
10897 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 0, 0); 10902 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 0, 0);
10898 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) 10903 /*if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 )
10899 { 10904 {