This commit is contained in:
Exavere
2021-09-21 13:18:00 -05:00
parent b95bff0d12
commit 8ab7b6a306
+1 -1
View File
@@ -40,7 +40,7 @@
/obj/machinery/power/treadmill/proc/throw_off(atom/movable/A)
// if 2fast, throw the person, otherwise they just slide off, if there's reasonable speed at all
if(speed)
if(speed && !A.move_resist == INFINITY)
var/dist = max(throw_dist * speed / MAX_SPEED, 1)
A.throw_at(get_distant_turf(get_turf(src), reverse_direction(dir), dist), A.throw_range, A.throw_speed, src, 1)