changeset 608:653724e9c234

m
author Ritor1
date Wed, 06 Mar 2013 18:22:07 +0600
parents 0193f10fecbf
children 42d5777c2f47
files Chest.cpp mm7_2.cpp mm7_3.cpp
diffstat 3 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Chest.cpp	Sun Mar 03 18:39:35 2013 +0600
+++ b/Chest.cpp	Wed Mar 06 18:22:07 2013 +0600
@@ -581,21 +581,21 @@
     uChestArea = pChestWidthsByType[pChests[uChestID].uChestBitmapID] * pChestHeightsByType[pChests[uChestID].uChestBitmapID];
     memset(chest_cells_map, 0, 144);
     //fill cell map at random positions
-    for (items_counter = 0; items_counter<uChestArea; ++items_counter)
-        {
+    for ( items_counter = 0; items_counter < uChestArea; ++items_counter )
+    {
         //get random position in chest
         do
         random_chest_pos = (unsigned __int8)rand();
         while ( random_chest_pos >= uChestArea );
         //if this pos occupied move to next
         while ( chest_cells_map[random_chest_pos] )
-            {
+        {
             ++random_chest_pos;
             if ( random_chest_pos == uChestArea )
                 random_chest_pos = 0;
-            }
+        }
         chest_cells_map[random_chest_pos] = items_counter;
-        }
+      }
     items_counter = 0;
 
     for (items_counter = 0; items_counter<uChestArea; ++items_counter)
--- a/mm7_2.cpp	Sun Mar 03 18:39:35 2013 +0600
+++ b/mm7_2.cpp	Wed Mar 06 18:22:07 2013 +0600
@@ -13305,7 +13305,7 @@
   assert(sizeof(GUIProgressBar) == 0x1B8);
   assert(sizeof(GUIFont) == 0x1020);
   assert(sizeof(stru262_TurnBased) == 0x40);
-  assert(sizeof(ArcomageGame) == 0xFA);
+  //assert(sizeof(ArcomageGame) == 0xFA);
   assert(sizeof(stru277) == 0x14);
   assert(sizeof(ArcomageCard) == 0x6C);
   assert(sizeof(stru320) == 0x3FC);
--- a/mm7_3.cpp	Sun Mar 03 18:39:35 2013 +0600
+++ b/mm7_3.cpp	Wed Mar 06 18:22:07 2013 +0600
@@ -6253,9 +6253,8 @@
  array_50AC10[3]._rhw = 1;
  array_50AC10[3].u = 1;
  array_50AC10[3].v = 1 + t;
- pRenderer->DrawStrip(_this.uNumVertices, &_this,
-          pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);
-        return;
+ pRenderer->DrawStrip(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);
+ return;
 }