Bug 562: Collision detection for unisolid tiles doesn't handle tilemap offset
authorFlorian Forster <supertux@octo.it>
Sat, 30 Jan 2010 17:36:43 +0000 (17:36 +0000)
committerFlorian Forster <supertux@octo.it>
Sat, 30 Jan 2010 17:36:43 +0000 (17:36 +0000)
commit70bccc4fcdd6c652e53786e52b3c6774dc79a3ac
tree06cb6d7bb753cde3c3aecdf1914efe2a5d04277c
parent30e7ce8e8812f75334733830748a59731d99bf3f
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.

SVN-Revision: 6299
src/supertux/sector.cpp
src/supertux/sector.hpp