Merge pull request #6050 from Heroman3003/ladder-fixaroo

Fixes being unable to climb ladders you're already on
This commit is contained in:
Neerti
2019-04-08 15:18:53 -04:00
committed by GitHub

View File

@@ -48,7 +48,7 @@
var/obj/structure/ladder/target_ladder = getTargetLadder(M)
if(!target_ladder)
return
if(!M.Move(get_turf(src)))
if(!(M.loc == loc) && !M.Move(get_turf(src)))
to_chat(M, "<span class='notice'>You fail to reach \the [src].</span>")
return