diff options
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -440,7 +440,6 @@ _db_tmx_object_property_start(void *pv, const char *name, const char **attr) free(p_type); db_dbg(" Object speed: %f px/s", map->obj_s); - map->obj_s /= map->fr; /* Convert px/s to px/f */ } else if (strcmp(p_name, "direction") == 0) { db_xml_get_string_attr(p, attr, "value", &dir, 1); if (strcmp(dir, "lr") == 0) { @@ -458,12 +457,12 @@ _db_tmx_object_property_start(void *pv, const char *name, const char **attr) "random"); } else if (strcmp(dir, "cw") == 0) { map->obj_a = rand() / (RAND_MAX / 360); - map->obj_d = -1; + map->obj_d = 1; db_dbg(" Object direction: " "clockwise"); } else if (strcmp(dir, "ccw") == 0) { map->obj_a = rand() / (RAND_MAX / 360); - map->obj_d = 1; + map->obj_d = -1; db_dbg(" Object direction: " "counter-clockwise"); } |