diff mm7_2.cpp @ 816:cfc65feef029

* Player Recovery Times * Player Attack fixes * Debug log to timers
author Nomad
date Tue, 26 Mar 2013 12:40:27 +0200
parents f5156b8c61ad
children 448e6d979c7a
line wrap: on
line diff
--- a/mm7_2.cpp	Tue Mar 26 06:40:04 2013 +0200
+++ b/mm7_2.cpp	Tue Mar 26 12:40:27 2013 +0200
@@ -10379,9 +10379,12 @@
                 v22 = _this.uItemID;
                 v50 = v22;
 				if ( v50 )
+                {
+                __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
 				  stru_A750F8[uActiveCharacter - 1]._494836(
 					*((int *)&pSpellDatas[66].uNormalLevelRecovery + v50),
 					uActiveCharacter - 1 + 9);
+                }
 				break;
               }
               v23 = v0->FindFreeInventorySlot();
@@ -10397,9 +10400,11 @@
               v22 = *(int *)v50;
 			  v50 = v22;
 			  if ( v50 )
+              {
+                __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
 				stru_A750F8[uActiveCharacter - 1]._494836(
-				*((int *)&pSpellDatas[66].uNormalLevelRecovery + v50),
-				uActiveCharacter - 1 + 9);
+				*((int *)&pSpellDatas[66].uNormalLevelRecovery + v50), uActiveCharacter - 1 + 9);
+              }
 			  break;
             }
           }
@@ -10419,9 +10424,12 @@
               v22 = *(int *)v50;
 			  v50 = v22;
 			  if ( v50 )
+              {
+                __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
 				stru_A750F8[uActiveCharacter - 1]._494836(
 				*((int *)&pSpellDatas[66].uNormalLevelRecovery + v50),
 				uActiveCharacter - 1 + 9);
+              }
 			  break;
         }
         --v53;
@@ -10440,9 +10448,12 @@
         if ( v51 )
           v0->pEquipment.uOffHand = 0;
         if ( v50 )
+        {
+                __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
           stru_A750F8[uActiveCharacter - 1]._494836(
             *((int *)&pSpellDatas[66].uNormalLevelRecovery + v50),
             uActiveCharacter - 1 + 9);
+        }
         break;
       case 1u:
         if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(uActiveCharacter) )