[MIRROR] Cleans up some unused procs and makes is_blocked_turf a turf proc. (#136)

* Cleans up some unused procs and makes is_blocked_turf a turf proc. (#52482)

* Cleans up some unused procs and makes is_blocked_turf a turf proc.

* Update code/game/turfs/turf.dm

Co-authored-by: Rohesie <rohesie@gmail.com>

Co-authored-by: Rohesie <rohesie@gmail.com>

* Cleans up some unused procs and makes is_blocked_turf a turf proc.

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-07-31 00:30:27 +02:00
committed by GitHub
co-authored by Rohesie ShizCalev
parent b7e1bd1973
commit 284f2de8a1
26 changed files with 50 additions and 95 deletions
+2 -2
View File
@@ -69,8 +69,8 @@
/obj/structure/proc/do_climb(atom/movable/A)
if(climbable)
if(A.loc == src.loc)
var/where_to_climb = get_step(A,dir)
if(!(is_blocked_turf(where_to_climb)))
var/turf/where_to_climb = get_step(A,dir)
if(!where_to_climb.is_blocked_turf())
A.forceMove(where_to_climb)
return TRUE
density = FALSE