diff options
-rw-r--r-- | src/map.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 { |