From 66850d2dbc9798619159688dcba0cc912247ac02 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 1 Feb 2012 22:22:33 +0100 Subject: 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 --- src/map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 0bec3ef4..7f75afea 100644 --- a/src/map.h +++ b/src/map.h @@ -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. -- cgit v1.2.3-60-g2f50