changeset 611:7bae884b7cd0

Слияние
author Ritor1
date Wed, 06 Mar 2013 20:16:06 +0600
parents c615ff03b144 (diff) b5240254cbbd (current diff)
children 346dc5fc2969
files Chest.cpp mm7_1.cpp mm7_2.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Chest.cpp	Wed Mar 06 16:51:39 2013 +0200
+++ b/Chest.cpp	Wed Mar 06 20:16:06 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)