From: Florian Forster Date: Sun, 31 Jan 2010 22:44:17 +0000 (+0000) Subject: src/supertux/sector.cpp: Use shift delta when checking the position of non-sloped... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0ce26722d9039a6b33ad31e33a3c8acb2b8b24b0;p=supertux.git src/supertux/sector.cpp: Use shift delta when checking the position of non-sloped unisolid tiles. This solves the "Tux falls through unisolid moving platforms" bug observed by Mathnerd314. SVN-Revision: 6302 --- diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index 27bb93920..a4f4c4792 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -1101,7 +1101,7 @@ int check_position_unisolid (const Rectf& obj_bbox, /* If this is not a slope, this is - again - easy */ if ((tile->getAttributes() & Tile::SLOPE) == 0) { - if (obj_bbox.get_bottom () <= tile_bbox.get_top ()) + if ((obj_bbox.get_bottom () - SHIFT_DELTA) <= tile_bbox.get_top ()) return POS_SOLID; else return POS_NON_SOLID;