Browse Source

newWorld(w, h) now actually makes the world w*h, not 4*w*h

Bart van Strien 15 years ago
parent
commit
b2d054ad50
2 changed files with 2 additions and 1 deletions
  1. 1 0
      changes.txt
  2. 1 1
      src/modules/physics/box2d/Physics.cpp

+ 1 - 0
changes.txt

@@ -44,6 +44,7 @@ LOVE 0.7.0 [Game Slave]
   * Changed fonts, they're now po2 safe.
   * Changed the traceback in the error screen.
   * Changed font origin to top-left.
+  * Changed behavior of love.physics.newWorld(w, h), it now creates a w*h world, not a 4*w*h world.
 
   * Removed font functions from love.graphics.
 

+ 1 - 1
src/modules/physics/box2d/Physics.cpp

@@ -57,7 +57,7 @@ namespace box2d
 
 	World * Physics::newWorld(float w, float h)
 	{
-		return newWorld(-w, -h, w, h, 0, 0, true);
+		return newWorld(0, 0, w, h, 0, 0, true);
 	}
 
 	Body * Physics::newBody(World * world, float x, float y, float mass, float i)