summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-17 20:22:40 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-17 20:23:50 (EST)
commiteebb2788b04e7ad655338f515918f1ebc0ba05ab (patch)
treefa9af56cc28939ac8bf92c86cd1921fd76011c06 /src
parent57858b90f855cf69997b0e1e421c89e14729eb5a (diff)
downloadoverworld-rpg-eebb2788b04e7ad655338f515918f1ebc0ba05ab.zip
overworld-rpg-eebb2788b04e7ad655338f515918f1ebc0ba05ab.tar.gz
overworld-rpg-eebb2788b04e7ad655338f515918f1ebc0ba05ab.tar.bz2
Support unused tileset properties.
Diffstat (limited to 'src')
-rw-r--r--src/resources/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/map.c b/src/resources/map.c
index 5e30aa2..67b00cb 100644
--- a/src/resources/map.c
+++ b/src/resources/map.c
@@ -440,6 +440,9 @@ tmx_tileset_el_start(void *pv, const char *name, const char **attr)
if (xml_check_tag(name, "tileoffset")) {
/* Not used by engine. */
xml_node_push(p, NULL, tmx_unused_start, tmx_unused_end, NULL);
+ } else if (xml_check_tag(name, "properties")) {
+ /* Not used by engine. */
+ xml_node_push(p, NULL, tmx_unused_start, tmx_unused_end, NULL);
} else if (xml_check_tag(name, "image")) {
xml_get_int_attr(p, attr, "width", &ts->width, 1);
xml_get_int_attr(p, attr, "height", &ts->height, 1);