diff SpriteObject.cpp @ 837:bebc19f3d2af

Save/load work with some problems
author Gloval
date Thu, 28 Mar 2013 00:37:27 +0400
parents f5156b8c61ad
children d061180f2b42
line wrap: on
line diff
--- a/SpriteObject.cpp	Tue Mar 26 15:21:03 2013 +0000
+++ b/SpriteObject.cpp	Thu Mar 28 00:37:27 2013 +0400
@@ -1080,23 +1080,13 @@
 //----- (0042F933) --------------------------------------------------------
 void SpriteObject::OnInteraction(unsigned int uLayingItemID)
 {
-  unsigned int v1; // ecx@1
-  unsigned __int16 *pAttributes; // ecx@2
-  unsigned __int16 v3; // ax@2
-
-  //__debugbreak(); // find out what's going on
-
-  v1 = uLayingItemID;
-  pSpriteObjects[v1].uObjectDescID = 0;
+  pSpriteObjects[uLayingItemID].uObjectDescID = 0;
   if ( pParty->bTurnBasedModeOn == 1 )
   {
-    pAttributes = &pSpriteObjects[v1].uAttributes;
-    v3 = *pAttributes;
-    if ( *pAttributes & 4 )
+    if (pSpriteObjects[uLayingItemID].uAttributes & 4 )
     {
-      v3 = v3 & 0xFB;
+      pSpriteObjects[uLayingItemID].uAttributes &= 0xFB;
       --pTurnEngine->field_1C;
-      *pAttributes = v3;
     }
   }
 }