changeset 1326:e70fe5d77928

UIMSG_CastSpell_Telekinesis
author Ritor1
date Mon, 01 Jul 2013 09:26:30 +0600
parents cc8d58f2bf0c
children 8433de6fd7d0
files CastSpellInfo.cpp GUIWindow.h mm7_5.cpp
diffstat 3 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/CastSpellInfo.cpp	Fri Jun 28 16:51:01 2013 +0600
+++ b/CastSpellInfo.cpp	Mon Jul 01 09:26:30 2013 +0600
@@ -4387,7 +4387,7 @@
           return;
 
         pGUIWindow_Settings = GUIWindow::Create(0, 0, 640, 480, WINDOW_CastSpell, (int)&pCastSpellInfo[result], 0);
-        pGUIWindow_Settings->CreateButton(game_viewport_x, game_viewport_y, game_viewport_width, game_viewport_height, 1, 0, UIMSG_CastSpell_BE, 0, 0, "", 0);
+        pGUIWindow_Settings->CreateButton(game_viewport_x, game_viewport_y, game_viewport_width, game_viewport_height, 1, 0, UIMSG_CastSpell_Telekinesis, 0, 0, "", 0);
         sub_421B2C_PlaceInInventory_or_DropPickedItem();
         return;
       }
--- a/GUIWindow.h	Fri Jun 28 16:51:01 2013 +0600
+++ b/GUIWindow.h	Mon Jul 01 09:26:30 2013 +0600
@@ -151,7 +151,7 @@
   UIMSG_ToggleShowDamage = 187,
   UIMSG_ScrollNPCPanel = 188,
   UIMSG_BD = 189,
-  UIMSG_CastSpell_BE = 190,
+  UIMSG_CastSpell_Telekinesis = 190,
   UIMSG_BF = 191,
   UIMSG_ClickAwardScrollBar = 192,
   UIMSG_C1 = 192,
--- a/mm7_5.cpp	Fri Jun 28 16:51:01 2013 +0600
+++ b/mm7_5.cpp	Mon Jul 01 09:26:30 2013 +0600
@@ -1774,12 +1774,9 @@
           pCurrentScreen = SCREEN_GAME;
           viewparams->bRedrawGameUI = 1;
           continue;
-        case UIMSG_CastSpell_BE://???
-          __debugbreak();
+        case UIMSG_CastSpell_Telekinesis:
           if ( pRenderer->pRenderD3D )
-          {
             LOWORD(v42) = pGame->pVisInstance->get_picked_object_zbuf_val();
-          }
           else
           {
             uNumSeconds = (unsigned int)pMouse->GetCursorPos(&v210);