Merge pull request #33706 from AnturK/dumbmechacode

Fixes some mecha code.
This commit is contained in:
Jordan Brown
2017-12-21 02:37:52 -05:00
committed by CitadelStationBot
parent 408cf32ddc
commit 14942fb582
+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)