mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-27 10:32:40 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user