Looked into human/robot/monkey/alien/etc Bump() code, found a possible cause for that strange bug where you can't push things and airlocks won't open when you run into them and etc.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1413 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-04-07 23:14:18 +00:00
parent ba7bc6ee69
commit c6c88bb0e5
4 changed files with 6 additions and 1 deletions

View File

@@ -44,6 +44,7 @@
if (istype(AM, /obj/window))
if(AM:ini_dir == NORTHWEST || AM:ini_dir == NORTHEAST || AM:ini_dir == SOUTHWEST || AM:ini_dir == SOUTHEAST)
for(var/obj/window/win in get_step(AM,t))
src.now_pushing = 0
return
step(AM, t)
src.now_pushing = null

View File

@@ -93,6 +93,7 @@
tmob.stunned = max(4, tmob.stunned)
playsound(src.loc, 'Egloves.ogg', 50, 1, -1)
W:charges--
src.now_pushing = 0
return
if(istype(tmob, /mob/living/carbon/human) && tmob.mutations & 32)
if(prob(40) && !(src.mutations & 32))
@@ -112,9 +113,10 @@
if (istype(AM, /obj/window))
if(AM:ini_dir == NORTHWEST || AM:ini_dir == NORTHEAST || AM:ini_dir == SOUTHWEST || AM:ini_dir == SOUTHEAST)
for(var/obj/window/win in get_step(AM,t))
src.now_pushing = 0
return
step(AM, t)
src.now_pushing = null
src.now_pushing = 0
return
return

View File

@@ -65,6 +65,7 @@
if (istype(AM, /obj/window))
if(AM:ini_dir == NORTHWEST || AM:ini_dir == NORTHEAST || AM:ini_dir == SOUTHWEST || AM:ini_dir == SOUTHEAST)
for(var/obj/window/win in get_step(AM,t))
src.now_pushing = 0
return
step(AM, t)
src.now_pushing = null

View File

@@ -323,6 +323,7 @@
if (istype(AM, /obj/window))
if(AM:ini_dir == NORTHWEST || AM:ini_dir == NORTHEAST || AM:ini_dir == SOUTHWEST || AM:ini_dir == SOUTHEAST)
for(var/obj/window/win in get_step(AM,t))
src.now_pushing = 0
return
step(AM, t)
src.now_pushing = null