Merge pull request #4481 from Citadel-Station-13/upstream-merge-33706

[MIRROR] Fixes some mecha code.
This commit is contained in:
LetterJay
2017-12-21 04:58:33 -06:00
committed by GitHub
+2 -2
View File
@@ -571,9 +571,9 @@
if(bumpsmash && occupant) //Need a pilot to push the PUNCH button.
if(nextsmash < world.time)
obstacle.mech_melee_attack(src)
if(!obstacle || !obstacle.density)
step(src,dir)
nextsmash = world.time + smashcooldown
if(!obstacle || obstacle.CanPass(src,get_step(src,dir)))
step(src,dir)
if(isobj(obstacle))
var/obj/O = obstacle
if(!O.anchored)