Replaces atom/HasEntered() with the builtin atom/movable/Crossed()

Crossed() is a byond builtin which is called automatically when two movable atoms overlap (as a side effect of Move(), but not when loc or x/y/z is changed).  Previously, turf/Entered() iterated through all objects in the turf in order to tell them an object had entered; with this change, HasEntered() becomes redundant and can be eliminated.

This may reduce lag when a large number of objects are moving in a small space (singularity, mining conveyors, etc) but should cause no changes to functionality at all.
This commit is contained in:
supersayu
2013-10-23 16:20:20 -04:00
parent 9996ded1f8
commit 799c7ad2ce
33 changed files with 47 additions and 51 deletions
+1 -1
View File
@@ -201,7 +201,7 @@
ismist = 0
/obj/machinery/shower/HasEntered(atom/movable/O)
/obj/machinery/shower/Crossed(atom/movable/O)
..()
wash(O)
if(ismob(O))