(hopefully) fixes a runtime causing the server to shit itself and crash immediately

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3190 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
quartz235@gmail.com
2012-02-25 04:02:24 +00:00
parent 06b4c17d97
commit 0b8e1f62bb

View File

@@ -372,6 +372,7 @@
var/turf/target
playsound(src, 'hiss.ogg', 50, 0, 0)
if(H) // Somehow, someone managed to flush a window which broke mid-transit and caused the disposal to go in an infinite loop trying to expel null, hopefully this fixes it
for(var/atom/movable/AM in H)
target = get_offset_target_turf(src.loc, rand(5)-rand(5), rand(5)-rand(5))
@@ -738,6 +739,7 @@
target = get_ranged_target_turf(T, direction, 10)
playsound(src, 'hiss.ogg', 50, 0, 0)
if(H)
for(var/atom/movable/AM in H)
AM.loc = T
AM.pipe_eject(direction)
@@ -750,6 +752,7 @@
else // no specified direction, so throw in random direction
playsound(src, 'hiss.ogg', 50, 0, 0)
if(H)
for(var/atom/movable/AM in H)
target = get_offset_target_turf(T, rand(5)-rand(5), rand(5)-rand(5))
@@ -1174,7 +1177,7 @@
sleep(20) //wait until correct animation frame
playsound(src, 'hiss.ogg', 50, 0, 0)
if(H)
for(var/atom/movable/AM in H)
AM.loc = src.loc
AM.pipe_eject(dir)