From 84f3c2ff802ef025290f74ce4725fc0f931698af Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Sun, 25 Jun 2006 14:11:58 +0000 Subject: [PATCH] Fixed collision with unisold tiles. SVN-Revision: 3743 --- src/sector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sector.cpp b/src/sector.cpp index c0c7b6313..f0463d80a 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -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; } -- 2.11.0