diff mm7_2.cpp @ 196:982c1ec5a983

More picking stuff
author Nomad
date Sat, 16 Feb 2013 20:24:02 +0200
parents 650d96af8855
children 30aa44013f7a
line wrap: on
line diff
--- a/mm7_2.cpp	Sat Feb 16 18:34:31 2013 +0200
+++ b/mm7_2.cpp	Sat Feb 16 20:24:02 2013 +0200
@@ -15205,7 +15205,7 @@
 }
 
 //----- (0046A14B) --------------------------------------------------------
-char __cdecl OnPressSpace()
+void OnPressSpace()
 {
   //SHORT v0; // ax@2
   int *v1; // eax@2
@@ -15235,8 +15235,7 @@
     pGame->PickKeyboard(GetAsyncKeyState(VK_CONTROL) & 0x8001, &vis_sprite_filter_3, &vis_door_filter);
     v1 = (int *)pGame->pVisInstance->get_picked_object_zbuf_val();
     if ( v1 != (int *)-1 )
-      LOBYTE(v1) = DoInteractionWithTopmostZObject((unsigned __int16)v1, (signed int)(unsigned __int16)v1 >> 3);
-    return (char)v1;
+      DoInteractionWithTopmostZObject((unsigned __int16)v1, (signed int)(unsigned __int16)v1 >> 3);
   }
   v22 = 0;
   v1 = (int *)((signed int)(viewparams->uScreenZ + viewparams->uScreenX) >> 1);
@@ -15333,10 +15332,7 @@
     if ( !(char)v1 )
       break;
   }
-  return (char)v1;
-}
-// 72065C: using guessed type int dword_72065C[];
-// 7207EC: using guessed type int dword_7207EC[];
+}
 
 //----- (0046A334) --------------------------------------------------------
 char __fastcall DoInteractionWithTopmostZObject(int a1, int a2)