Removes old height parameter from CanPass proc
This commit is contained in:
@@ -72,9 +72,7 @@
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/machinery/am_shielding/CanPass(atom/movable/mover, turf/target, height=0)
|
||||
if(height==0)
|
||||
return 1
|
||||
/obj/machinery/am_shielding/CanPass(atom/movable/mover, turf/target)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
/obj/machinery/field
|
||||
var/hasShocked = FALSE //Used to add a delay between shocks. In some cases this used to crash servers by spawning hundreds of sparks every second.
|
||||
|
||||
/obj/machinery/field/CanPass(atom/movable/mover, turf/target, height=0)
|
||||
/obj/machinery/field/CanPass(atom/movable/mover, turf/target)
|
||||
if(hasShocked)
|
||||
return FALSE
|
||||
if(isliving(mover)) // Don't let mobs through
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
// Crucial to make things work!!!!
|
||||
// OLD FIX - explanation given down below.
|
||||
// /obj/machinery/power/compressor/CanPass(atom/movable/mover, turf/target, height=0)
|
||||
// /obj/machinery/power/compressor/CanPass(atom/movable/mover, turf/target)
|
||||
// return !density
|
||||
|
||||
/obj/machinery/power/compressor/locate_machinery()
|
||||
|
||||
Reference in New Issue
Block a user