summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-30 04:14:06 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-30 04:14:06 (EDT)
commit486a72a549d928b3ac2ba806ca6ce8bb17b14a09 (patch)
tree68034ce76bbc1938185c84751f1c20f6ed941229 /src/map.c
parent75cbbd416551fdcc789ffd215e1121c8d129e732 (diff)
downloaddodge-balls-486a72a549d928b3ac2ba806ca6ce8bb17b14a09.zip
dodge-balls-486a72a549d928b3ac2ba806ca6ce8bb17b14a09.tar.gz
dodge-balls-486a72a549d928b3ac2ba806ca6ce8bb17b14a09.tar.bz2
ball, map: Fix ball speed
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index b41507b..99e404e 100644
--- a/src/map.c
+++ b/src/map.c
@@ -450,6 +450,9 @@ _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;
+ db_dbg(" Object speed: %f px/f",
+ map->obj_s);
} else if (strcmp(p_name, "direction") == 0) {
db_xml_get_string_attr(p, attr, "value", &dir, 1);
if (strcmp(dir, "lr") == 0) {