mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
- Removed mobs being pulled back in the shuttle; still exists in pods.
- Added a check for turf in the pushback proc. Used Move() instead of step(). git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5774 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -440,11 +440,11 @@ datum/shuttle_controller
|
||||
|
||||
|
||||
/proc/push_mob_back(var/mob/living/L, var/dir)
|
||||
if(iscarbon(L))
|
||||
if(iscarbon(L) && isturf(L.loc))
|
||||
if(prob(88))
|
||||
var/turf/T = get_step(L, dir)
|
||||
if(T)
|
||||
for(var/obj/O in T) // For doors and such (kinda ugly but we can't have people opening doors)
|
||||
if(!O.CanPass(L, L.loc, 1, 0))
|
||||
return
|
||||
step(L, dir)
|
||||
L.Move(get_step(L, dir), dir)
|
||||
Reference in New Issue
Block a user