Replaces HasEntered() with Crossed() and reduces redundant checks on turf/Enter()

This commit is contained in:
ZomgPonies
2013-10-28 06:45:15 -04:00
parent 78d2ccb0ef
commit 2c0614d3af
33 changed files with 70 additions and 68 deletions
@@ -284,4 +284,12 @@
if(welded)
overlays += "welded"
else
icon_state = icon_opened
icon_state = icon_opened
// Objects that try to exit a locker by stepping were doing so successfully,
// and due to an oversight in turf/Enter() were going through walls. That
// should be independently resolved, but this is also an interesting twist.
/obj/structure/closet/Exit(atom/movable/AM)
open()
if(AM.loc == src) return 0
return 1
+1 -1
View File
@@ -189,7 +189,7 @@
del(mymist)
ismist = 0
/obj/machinery/shower/HasEntered(atom/movable/O)
/obj/machinery/shower/Crossed(atom/movable/O)
..()
wash(O)
if(ismob(O))