changeset 1062:e23a79658fc5

some BYTE errors fixed
author zipi
date Fri, 24 May 2013 00:44:51 +0100
parents 89422dd58318
children bcebd491e8fa
files Outdoor.cpp Player.cpp SpriteObject.cpp UICharacter.cpp UiGame.cpp mm7_3.cpp
diffstat 6 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/Outdoor.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/Outdoor.cpp	Fri May 24 00:44:51 2013 +0100
@@ -2249,7 +2249,7 @@
         if (face.HasEventHint())
           face.uAttributes |= 0x1000u;
         else
-          face.uAttributes &= 0xEFFFu;
+          face.uAttributes &= 0xFFFFEFFFu;
       }
           //++thisa;
           //v89 = pBModels;
--- a/Player.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/Player.cpp	Fri May 24 00:44:51 2013 +0100
@@ -5221,8 +5221,8 @@
           if ((v28 < 0) || v28 > 2 )
               return v5 + v62 + v61;
         }
-      v15 = pItemsTable->pItems[v29].uDamageMod;
-      v14 = pItemsTable->pItems[v29].uDamageDice * pItemsTable->pItems[v29].uDamageRoll;
+      v15 = pItemsTable->pItems[v23].uDamageMod;
+      v14 = pItemsTable->pItems[v23].uDamageDice * pItemsTable->pItems[v23].uDamageRoll;
       v5 += v15 + v14;
       return v5 + v62 + v61;
     }
--- a/SpriteObject.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/SpriteObject.cpp	Fri May 24 00:44:51 2013 +0100
@@ -1095,7 +1095,7 @@
   {
     if (pSpriteObjects[uLayingItemID].uAttributes & 4 )
     {
-      pSpriteObjects[uLayingItemID].uAttributes &= 0xFB;
+      pSpriteObjects[uLayingItemID].uAttributes &= 0xFFFB;
       --pTurnEngine->field_1C;
     }
   }
--- a/UICharacter.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/UICharacter.cpp	Fri May 24 00:44:51 2013 +0100
@@ -772,7 +772,7 @@
         if ( _50C9A8_item_enchantment_timer <= 0 )
         {
           _50C9A8_item_enchantment_timer = 0;
-          item_MainHand4->uAttributes &= 0xFu;
+          item_MainHand4->uAttributes &= 0xFFFFFF0Fu;
           ptr_50C9A4 = 0;
         }
         v17 = (double)GetTickCount() * 0.1;
@@ -819,7 +819,7 @@
         if ( _50C9A8_item_enchantment_timer <= 0 )
         {
           _50C9A8_item_enchantment_timer = 0;
-          itemBow->uAttributes &= 0xFu;
+          itemBow->uAttributes &= 0xFFFFFF0Fu;
           ptr_50C9A4 = 0;
         }
         v28 = (double)GetTickCount() * 0.1;
@@ -881,7 +881,7 @@
           if ( _50C9A8_item_enchantment_timer <= 0 )
           {
             _50C9A8_item_enchantment_timer = 0;
-            item_Cloak->uAttributes &= 0xFu;
+            item_Cloak->uAttributes &= 0xFFFFFF0Fu;
             ptr_50C9A4 = 0;
           }
           v40 = (double)GetTickCount() * 0.1;
@@ -949,7 +949,7 @@
           if ( _50C9A8_item_enchantment_timer <= 0 )
           {
             _50C9A8_item_enchantment_timer = 0;
-            item_Armor->uAttributes &= 0xFu;
+            item_Armor->uAttributes &= 0xFFFFFF0Fu;
             ptr_50C9A4 = 0;
           }
           v52 = (double)GetTickCount() * 0.1;
@@ -1005,7 +1005,7 @@
                 if ( _50C9A8_item_enchantment_timer <= 0 )
                 {
                   _50C9A8_item_enchantment_timer = 0;
-                  item_Armor->uAttributes &= 0xFu;
+                  item_Armor->uAttributes &= 0xFFFFFF0Fu;
                   ptr_50C9A4 = 0;
                 }
                 v97 = (double)GetTickCount();
@@ -1050,7 +1050,7 @@
               if ( _50C9A8_item_enchantment_timer <= 0 )
               {
                 _50C9A8_item_enchantment_timer = 0;
-                item_Armor->uAttributes &= 0xFu;
+                item_Armor->uAttributes &= 0xFFFFFF0Fu;
                 ptr_50C9A4 = 0;
               }
               v97 = (double)GetTickCount();
@@ -1114,7 +1114,7 @@
           if ( _50C9A8_item_enchantment_timer <= 0 )
           {
             _50C9A8_item_enchantment_timer = 0;
-            item_Boot->uAttributes &= 0xFu;
+            item_Boot->uAttributes &= 0xFFFFFF0Fu;
             ptr_50C9A4 = 0;
           }
           v64 = (double)GetTickCount() * 0.1;
@@ -1185,7 +1185,7 @@
             if ( _50C9A8_item_enchantment_timer <= 0 )
             {
               _50C9A8_item_enchantment_timer = 0;
-              item_Belt->uAttributes &= 0xFu;
+              item_Belt->uAttributes &= 0xFFFFFF0Fu;
               ptr_50C9A4 = 0;
             }
             v78 = (double)GetTickCount() * 0.1;
@@ -1260,7 +1260,7 @@
               if ( _50C9A8_item_enchantment_timer <= 0 )
               {
                 _50C9A8_item_enchantment_timer = 0;
-                item_CloakCollar->uAttributes &= 0xFu;
+                item_CloakCollar->uAttributes &= 0xFFFFFF0Fu;
                 ptr_50C9A4 = 0;
               }
               v118 = (double)GetTickCount() * 0.1;
@@ -1324,7 +1324,7 @@
           if ( _50C9A8_item_enchantment_timer <= 0 )
           {
             _50C9A8_item_enchantment_timer = 0;
-            item_Helm->uAttributes &= 0xFu;
+            item_Helm->uAttributes &= 0xFFFFFF0Fu;
             ptr_50C9A4 = 0;
           }
           v130 = (double)GetTickCount() * 0.1;
@@ -1388,7 +1388,7 @@
         if ( _50C9A8_item_enchantment_timer <= 0 )
         {
           _50C9A8_item_enchantment_timer = 0;
-          item_MainHand3->uAttributes &= 0xFu;
+          item_MainHand3->uAttributes &= 0xFFFFFF0Fu;
           ptr_50C9A4 = 0;
         }
         v141 = (double)GetTickCount() * 0.1;
@@ -1460,7 +1460,7 @@
         if ( _50C9A8_item_enchantment_timer <= 0 )
         {
           _50C9A8_item_enchantment_timer = 0;
-          item_Shield->uAttributes &= 0xFu;
+          item_Shield->uAttributes &= 0xFFFFFF0Fu;
           ptr_50C9A4 = 0;
         }
         v158 = (double)GetTickCount() * 0.1;
@@ -1602,7 +1602,7 @@
     if (_50C9A8_item_enchantment_timer <= 0)
     {
       _50C9A8_item_enchantment_timer = 0;
-      item->uAttributes &= 0xF;
+      item->uAttributes &= 0xFFFFFF0F;
       ptr_50C9A4 = 0;
     }
     pRenderer->_4A63E6(x, y, item_texture, enchantment_texture, GetTickCount() * 0.1, 0, 255);
--- a/UiGame.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/UiGame.cpp	Fri May 24 00:44:51 2013 +0100
@@ -2570,7 +2570,7 @@
 LABEL_15:
     //v12 = &pIndoor->pFaces[pOutline->uFace1ID];
     if (bWizardEyeActive && uWizardEyeSkillLevel >= 3 &&
-        (pFace1->uAttributes & 0x2000000 || pFace2->uAttributes & 0x2000000) &&
+        (pFace1->uAttributes & 0x2000 || pFace2->uAttributes & 0x2000) &&
         (pIndoor->pFaceExtras[pFace1->uFaceExtraID].uEventID || pIndoor->pFaceExtras[pFace2->uFaceExtraID].uEventID))
     {
       if (uNumBlueFacesInBLVMinimap < 49)
--- a/mm7_3.cpp	Thu May 23 22:07:17 2013 +0100
+++ b/mm7_3.cpp	Fri May 24 00:44:51 2013 +0100
@@ -14915,7 +14915,7 @@
 				if ( v81 < 0 )
 					v81 = 0;
 				rand();
-				pActor->uAttributes &= 0xFBFFFF;
+				pActor->uAttributes &= 0xFFFBFFFF;
 				if ( v81 < 5120 )
 				{
 					v45 = stru_50C198.special_ability_use_check(pActor, actor_id);