From 709ec2da87608f2ff1ad759a567f96b3ea1f7497 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Sun, 9 Apr 2017 22:21:31 -0400 Subject: [PATCH] Fixes throwing at low speeds --- code/controllers/subsystem/throwing.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/throwing.dm b/code/controllers/subsystem/throwing.dm index bce7c76d0dd..8d95d3fa294 100644 --- a/code/controllers/subsystem/throwing.dm +++ b/code/controllers/subsystem/throwing.dm @@ -70,7 +70,7 @@ SUBSYSTEM_DEF(throwing) var/atom/step //calculate how many tiles to move, making up for any missed ticks. - var/tilestomove = round(min(((((world.time+world.tick_lag) - start_time) * speed) - (dist_travelled ? dist_travelled : -1)), speed*MAX_TICKS_TO_MAKE_UP) * (world.tick_lag * SSthrowing.wait)) + var/tilestomove = Ceiling(min(((((world.time+world.tick_lag) - start_time) * speed) - (dist_travelled ? dist_travelled : -1)), speed*MAX_TICKS_TO_MAKE_UP) * (world.tick_lag * SSthrowing.wait)) while (tilestomove-- > 0) if ((dist_travelled >= maxrange || AM.loc == target_turf) && AM.has_gravity(AM.loc)) finalize()