diff Mouse.cpp @ 2006:30c2b575d25c

signed fixes DamagePlayerFromMonster -1 indexing
author zipi
date Wed, 06 Nov 2013 13:06:02 +0000
parents c1c74df0a33e
children 259df09dfb50
line wrap: on
line diff
--- a/Mouse.cpp	Wed Nov 06 00:09:47 2013 -0800
+++ b/Mouse.cpp	Wed Nov 06 13:06:02 2013 +0000
@@ -479,7 +479,7 @@
   int *pXY_; // esi@1
   signed int y; // eax@7
   signed int x; // ecx@7
-  unsigned int v4; // eax@11
+  signed int v4; // eax@11
   signed int v5; // eax@17
   signed int v6; // esi@19
   int v7; // esi@30
@@ -518,7 +518,7 @@
     goto LABEL_30;
   v4 = GetCurrentMenuID();
   x = pX;
-  if ( v4 != 0xFFFFFFFF
+  if ( v4 != -1
     || (signed int)pX < (signed int)pViewport->uViewportTL_X
     || (signed int)pX > (signed int)pViewport->uViewportBR_X )
   {