diff options
-rw-r--r-- | src/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -447,10 +447,12 @@ _db_tmx_object_property_start(void *pv, const char *name, const char **attr) db_dbg(" Object direction: " "random"); } else if (strcmp(dir, "cw") == 0) { + map->obj_a = rand() / (RAND_MAX / 360); 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; db_dbg(" Object direction: " "counter-clockwise"); |