From: Wolfgang Becker Date: Sun, 25 Jun 2006 14:11:58 +0000 (+0000) Subject: Fixed collision with unisold tiles. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=84f3c2ff802ef025290f74ce4725fc0f931698af;p=supertux.git Fixed collision with unisold tiles. SVN-Revision: 3743 --- 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; }