Browse Source

- Fixed console warning from CollisionToy (zero-sized dimension was being specified).
- Fixed console warning from CompundObjectsToy (bad layout mode was being specified).

MelvMay-GG 12 years ago
parent
commit
a352bbc32b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      modules/CollisionToy/1/main.cs
  2. 1 1
      modules/CompoundObjectsToy/1/main.cs

+ 1 - 1
modules/CollisionToy/1/main.cs

@@ -109,7 +109,7 @@ function CollisionToy::createBlockers( %this )
     for( %n = 0; %n < CollisionToy.MaxBlockers; %n++ )
     for( %n = 0; %n < CollisionToy.MaxBlockers; %n++ )
     {
     {
         // Choose a uniform area.
         // Choose a uniform area.
-        %sizeX = getRandom(0.5, 10);
+        %sizeX = getRandom(1, 9);
         %sizeY = 10 - %sizeX;
         %sizeY = 10 - %sizeX;
         
         
         // Create sprite.
         // Create sprite.

+ 1 - 1
modules/CompoundObjectsToy/1/main.cs

@@ -126,7 +126,7 @@ function CompoundObjectsToy::createCompoundObject( %this, %worldPosition )
     %composite.BatchCulling = false;
     %composite.BatchCulling = false;
     
     
     // Turn-off batch layout as these sprites will be positioned explicitly.
     // Turn-off batch layout as these sprites will be positioned explicitly.
-    %composite.BatchLayout = "none";
+    %composite.BatchLayout = "off";
     
     
     // Render everything together, don't sort the sprites with the rest of the scene layer.
     // Render everything together, don't sort the sprites with the rest of the scene layer.
     %composite.BatchIsolated = true;
     %composite.BatchIsolated = true;