Makes the list of turfs of the beam overlays be cleaned after the overlays are removed. The emitters won't lag the server due to huge for loops of the same turfs over and over.

This commit is contained in:
Aranclanos
2014-05-23 05:59:16 -03:00
parent 6f02732ae4
commit 020d9afd48

View File

@@ -306,6 +306,7 @@ var/list/beam_master = list()
var/list/turfs = turf_master[laser_state]
for(var/turf/T in turfs)
T.overlays -= beam_master[laser_state]
turfs.Cut()
return
/obj/item/projectile/beam/practice