summaryrefslogtreecommitdiff
path: root/src/game-server/mapreader.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-01 22:38:50 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-03 20:21:38 +0100
commit48d44a13e525375ef289ef577e5fc6abf1735e19 (patch)
treefe40f14217fa23dcec40e27218ff8aa786be7e8d /src/game-server/mapreader.h
parent1e562bdd132c4166ca4de2bdb3f241adaa9a7149 (diff)
downloadmanaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.tar.gz
manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.tar.bz2
manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.tar.xz
manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.zip
Clear the gid flags before processing them
Also read the gids as unsigned integers since that's how Tiled writes them to prevent the number going negative when the highest flag is used. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/game-server/mapreader.h')
-rw-r--r--src/game-server/mapreader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/mapreader.h b/src/game-server/mapreader.h
index 725737f2..802f6b07 100644
--- a/src/game-server/mapreader.h
+++ b/src/game-server/mapreader.h
@@ -65,7 +65,7 @@ class MapReader
*/
static int getObjectProperty(xmlNodePtr node, int def);
- static void setTileWithGid(Map *map, int x, int y, int gid);
+ static void setTileWithGid(Map *map, int x, int y, unsigned gid);
};
#endif