Bug 562: Collision detection for unisolid tiles doesn't handle tilemap offset
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 30 Jan 2010 17:36:43 +0000 (17:36 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 30 Jan 2010 17:36:43 +0000 (17:36 +0000)
commitbf68b35f057259541c6d62b3980ac47e7140a5c2
tree06cb6d7bb753cde3c3aecdf1914efe2a5d04277c
parent74efb9e958ec197d28586abf4e95092be45850d6
Bug 562: Collision detection for unisolid tiles doesn't handle tilemap offset

- Use the new TileMap::get_tile_bbox function, which handles offset.

Cleanups:

- Get the bottom from the original MovingObject rather than subtracting
  movement from dest (an ugly kludge).

- Apply De Morgan's law so the test more clearly corresponds to the
  comment.

Resolves #562. Thanks to Matt McCutchen for updating the patch.

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6299 837edb03-e0f3-0310-88ca-d4d4e8b29345
src/supertux/sector.cpp
src/supertux/sector.hpp