mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user