diff UI/UIHouses.cpp @ 2022:03d9336e862f

SOUND_WalkingOnTo3DModel
author Ritor1
date Wed, 13 Nov 2013 17:41:12 +0600
parents 05b433b8cb37
children b7485a6502f2
line wrap: on
line diff
--- a/UI/UIHouses.cpp	Mon Nov 11 23:57:02 2013 +0600
+++ b/UI/UIHouses.cpp	Wed Nov 13 17:41:12 2013 +0600
@@ -2046,16 +2046,17 @@
       {
         Party::TakeGold(pPriceRoom);
         PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney_TrainingSuccessful);
-        //dialog_menu_id = HOUSE_DIALOGUE_NULL;
+        dialog_menu_id = HOUSE_DIALOGUE_NULL;
         HouseDialogPressCloseBtn();
         GetHouseGoodbyeSpeech();
         pVideoPlayer->Unload();
-        if ( pMessageQueue_50CBD0->uNumMessages )
+        /*if ( pMessageQueue_50CBD0->uNumMessages )
           pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
         pMessageQueue_50CBD0->pMessages[0].eType = UIMSG_RentRoom;
         pMessageQueue_50CBD0->pMessages[0].param = (int)window_SpeakInHouse->ptr_1C;//107
         pMessageQueue_50CBD0->pMessages[0].field_8 = 1;
-        ++pMessageQueue_50CBD0->uNumMessages;
+        ++pMessageQueue_50CBD0->uNumMessages;*/
+        pMessageQueue_50CBD0->AddMessage(UIMSG_RentRoom, (int)window_SpeakInHouse->ptr_1C, 1);
         window_SpeakInHouse->Release();
         window_SpeakInHouse = 0;
         return;