This solves the "Tux falls through unisolid moving platforms" bug observed by
Mathnerd314.
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6302
837edb03-e0f3-0310-88ca-
d4d4e8b29345
/* If this is not a slope, this is - again - easy */
if ((tile->getAttributes() & Tile::SLOPE) == 0)
{
/* 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;
return POS_SOLID;
else
return POS_NON_SOLID;