Merge pull request #16761 from Exavere/agony-even

Fixes Treadmills throwing ghosts around when in use
This commit is contained in:
variableundefined
2021-09-24 20:16:50 -05:00
committed by GitHub

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)