diff GUIWindow.cpp @ 473:7f1b00901cf7

Skill learning menu in shops
author Gloval
date Tue, 26 Feb 2013 02:09:56 +0400
parents c43f156a95c9
children d4ea191229ff
line wrap: on
line diff
--- a/GUIWindow.cpp	Mon Feb 25 23:33:15 2013 +0400
+++ b/GUIWindow.cpp	Tue Feb 26 02:09:56 2013 +0400
@@ -1070,7 +1070,7 @@
   v18.uFrameZ += 8;
   if ( !pDialogueNPCCount )
   {
-    if ( dword_F8B198 == 31 )
+    if ( in_current_bilding_type == 31 )
     {
       sub_4B4F4F();
       goto LABEL_58;
@@ -1151,9 +1151,9 @@
       //p2DEvents_minus1__10[13 * (unsigned int)ptr_507BC0->ptr_1C]);
       p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterTitle);
     v18.DrawTitleText(pFontCreate, 0x1E3u, 0x71u, v19, pTmpBuf, 3u);
-    if ( dword_F8B198 <= 18 )
+    if ( in_current_bilding_type <= 18 )
     {
-      switch ( dword_F8B198 )
+      switch ( in_current_bilding_type )
       {
         case 18:
           sub_4B6478();
@@ -1171,15 +1171,15 @@
           AlchemistDialog();
           break;
         default:
-          if ( dword_F8B198 > 4 )
+          if ( in_current_bilding_type > 4 )
           {
-            if ( dword_F8B198 <= 16 )
+            if ( in_current_bilding_type <= 16 )
             {
               GuildDialog();
             }
             else
             {
-              if ( dword_F8B198 == 17 )
+              if ( in_current_bilding_type == 17 )
                 sub_4B7911();
             }
           }
@@ -1187,7 +1187,7 @@
       }
       goto LABEL_58;
     }
-    switch ( dword_F8B198 )
+    switch ( in_current_bilding_type )
     {
       case 21:
         TavernDialog();
@@ -1199,17 +1199,17 @@
         TampleDialog();
         break;
       default:
-        if ( dword_F8B198 <= 26 )
+        if ( in_current_bilding_type <= 26 )
           break;
-        if ( dword_F8B198 <= 28 )
+        if ( in_current_bilding_type <= 28 )
         {
           TravelByTransport();
         }
         else
         {
-          if ( dword_F8B198 != 30 )
+          if ( in_current_bilding_type != 30 )
           {
-            if ( dword_F8B198 != 31 )
+            if ( in_current_bilding_type != 31 )
               break;
             sub_4B4F4F();
             goto LABEL_58;