diff UI/UIHouses.cpp @ 1919:140ca8123384

Tavern rest fix
author Ritor1
date Wed, 23 Oct 2013 10:24:38 +0600
parents 2e6d3cd052e0
children 05b433b8cb37
line wrap: on
line diff
--- a/UI/UIHouses.cpp	Tue Oct 22 18:55:37 2013 -0700
+++ b/UI/UIHouses.cpp	Wed Oct 23 10:24:38 2013 +0600
@@ -1598,7 +1598,7 @@
           v15 = v14;
         while ( GetTickCount() < v15 )
           sqrt(3.1415926);
-        while ( sub_4BD8B5() )
+        while ( HouseDialogPressCloseBtn() )
           ;
         pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 0, 0);
         return;
@@ -2046,8 +2046,8 @@
       {
         Party::TakeGold(pPriceRoom);
         PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney_TrainingSuccessful);
-        dialog_menu_id = HOUSE_DIALOGUE_NULL;
-        sub_4BD8B5();
+        //dialog_menu_id = HOUSE_DIALOGUE_NULL;
+        HouseDialogPressCloseBtn();
         GetHouseGoodbyeSpeech();
         pVideoPlayer->Unload();
         if ( pMessageQueue_50CBD0->uNumMessages )