mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
newWorld(w, h) now actually makes the world w*h, not 4*w*h
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user