Remove unnecessary checks

This commit is contained in:
Bizzonium
2020-08-04 15:41:16 +03:00
parent 94242ce235
commit 617dbc50e7
3 changed files with 1 additions and 11 deletions
-4
View File
@@ -14,7 +14,6 @@
var/precision = TRUE // how close to the portal you will teleport. FALSE = on the portal, TRUE = adjacent
var/can_multitool_to_remove = FALSE
var/ignore_tele_proof_area_setting = FALSE
var/can_mecha_pass = FALSE
/obj/effect/portal/New(loc, turf/target, creator = null, lifespan = 300)
..()
@@ -89,9 +88,6 @@
if(!M.simulated || iseffect(M))
. = FALSE
if(!can_mecha_pass && M.anchored && ismecha(M))
. = FALSE
/obj/effect/portal/proc/teleport(atom/movable/M)
if(!can_teleport(M))
return FALSE