Fixed collision with unisold tiles.
authorWolfgang Becker <uafr@gmx.de>
Sun, 25 Jun 2006 14:11:58 +0000 (14:11 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sun, 25 Jun 2006 14:11:58 +0000 (14:11 +0000)
SVN-Revision: 3743

src/sector.cpp

index c0c7b63..f0463d8 100644 (file)
@@ -787,7 +787,7 @@ Sector::collision_tilemap(const Rect& dest, const Vector& movement,
       // only handle unisolid when the player is falling down and when he was
       // above the tile before
       if(tile->getAttributes() & Tile::UNISOLID) {
-        if(movement.y < 0 || dest.get_top() - movement.y > y*32)
+        if(movement.y <= 0 || dest.get_top() - movement.y > y*32)
           continue;
       }