diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-01 22:22:33 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-03 20:29:10 +0100 |
commit | 66850d2dbc9798619159688dcba0cc912247ac02 (patch) | |
tree | 84f3e15620bf0f60725c10495deeaefbe1824d10 /src/map.h | |
parent | 024088d76569ef07be7f166f22f3f5e22592a586 (diff) | |
download | mana-66850d2dbc9798619159688dcba0cc912247ac02.tar.gz mana-66850d2dbc9798619159688dcba0cc912247ac02.tar.bz2 mana-66850d2dbc9798619159688dcba0cc912247ac02.tar.xz mana-66850d2dbc9798619159688dcba0cc912247ac02.zip |
Clear tile flags from the gid before further processing
Better to show non-rotated/flipped tiles than no tile at all. This also
fixes interpretation of collision tiles that happen to be flipped.
Also interpret the gid as an unsigned number, since that's how they are
written in the TMX file since the introduction of these flags.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -221,7 +221,7 @@ class Map : public Properties /** * Finds the tile set that a tile with the given global id is part of. */ - Tileset *getTilesetWithGid(int gid) const; + Tileset *getTilesetWithGid(unsigned gid) const; /** * Get tile reference. |