summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map.c b/src/map.c
index 78d5d05..3f3a6f9 100644
--- a/src/map.c
+++ b/src/map.c
@@ -583,9 +583,13 @@ _db_tmx_object_start(void *pv, const char *name, const char **attr)
XML_StopParser(p, XML_FALSE);
return;
}
- map->obj_x = x + w / 2;
- map->obj_y = y - h / 2; /* Object origin is BOTTOM left */
- map->obj_r = w / 2;
+ map->obj_x = x + w / 2;
+ map->obj_y = y - h / 2; /* Object origin is BOTTOM left */
+ map->obj_r = w / 2;
+ map->obj_a = 0;
+ map->obj_d = 0;
+ map->obj_sr = 0;
+ map->obj_s = 0.0;
db_xml_node_push(p, map, _db_tmx_object_properties_start,
_db_tmx_object_end, NULL);
} else {