mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-26 01:11:54 +00:00
Merge pull request #16761 from Exavere/agony-even
Fixes Treadmills throwing ghosts around when in use
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user