As Mathnerd314 has pointed out on IRC, checking (movement.y >= 0) is not
correct when the tilemap containing the unisolid tile is moving. In this case,
the relative speed should be considered.
Resolves #571.
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6303
837edb03-e0f3-0310-88ca-
d4d4e8b29345
* for south-slopes (which are solid when moving "down") and
* north-slopes (which are solid when moving "up". "up" and "down" is
* in quotation marks because because the slope's gradient is taken
- * into account. This is more complex than just checking for (y > 0).
- * --octo */
- status = check_movement_unisolid (movement, tile);
+ * Also, this uses the movement relative to the tilemaps own movement
+ * (if any). --octo */
+ status = check_movement_unisolid (movement - solids->get_movement (), tile);
/* If zero is returned, the unisolid tile is non-solid. */
if (status == 0)
continue;