diff GUIWindow.cpp @ 972:c8a0f6d89c70

Some inqury on selecting Knight bug.
author Nomad
date Wed, 08 May 2013 19:54:19 +0200
parents 0423c40d7e88
children a6ef7125f6e4
line wrap: on
line diff
--- a/GUIWindow.cpp	Wed May 08 17:02:37 2013 +0600
+++ b/GUIWindow.cpp	Wed May 08 19:54:19 2013 +0200
@@ -276,7 +276,7 @@
 }
 
 //----- (0041D08F) --------------------------------------------------------
-void GUIWindow::_41D08F(int a2, int a3, int a4, int a5)
+void GUIWindow::_41D08F_set_keyboard_control_group(int a2, int a3, int a4, int a5)
 {
   if ( a2 )
   {
@@ -285,7 +285,7 @@
     this->field_34 = a4;
     this->pCurrentPosActiveItem = a5;
     this->pStartingPosActiveItem = a5;
-    this->field_44 = 1;
+    this->receives_keyboard_input = true;
   }
   else
   {
@@ -294,7 +294,7 @@
     this->field_34 = a4;
     this->pCurrentPosActiveItem = 0;
     this->pStartingPosActiveItem = 0;
-    this->field_44 = 0;
+    this->receives_keyboard_input = false;
   }
 }
 
@@ -962,7 +962,7 @@
 
   CreateButton(0, 0, 0, 0, 1, 0, UIMSG_33, 0, '\t', "", 0);
   if ( a2 )
-    _41D08F(a2, 0, 0, 0);
+    _41D08F_set_keyboard_control_group(a2, 0, 0, 0);
 
   if (pPlayer->pActiveSkills[PLAYER_SKILL_FIRE])   CreateButton(399,  10, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 0, 0, aSpellSchoolNames[0], 0);
   if (pPlayer->pActiveSkills[PLAYER_SKILL_AIR])    CreateButton(399,  46, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 1, 0, aSpellSchoolNames[1], 0);
@@ -1755,7 +1755,7 @@
   pWindow->uFrameY = uY;
   pWindow->uFrameHeight = uHeight;
   pWindow->eWindowType = eWindowType;
-  pWindow->field_44 = 0;
+  pWindow->receives_keyboard_input = false;
   ++uNumVisibleWindows;
   pWindow->numVisibleWindows = uNumVisibleWindows;
   pVisibleWindowsIdxs[uNumVisibleWindows] = uNextFreeWindowID + 1;
@@ -1857,7 +1857,7 @@
                 num_menu_buttons = 2;
               }
             }
-            pWindow->_41D08F(num_menu_buttons, 1, 0, 1);
+            pWindow->_41D08F_set_keyboard_control_group(num_menu_buttons, 1, 0, 1);
           }
           break;