Cameranet sorting fixes (#2188)

changes:

The cameranet is now actually sorted like it's supposed to be. Whoops.
The obfuscations list on turfs is now only created when it is actually needed, instead of every turf in the game having the list created from the start.
Visualnet update buffers now use timers instead of spawn.
Fixes #2186.
This commit is contained in:
Lohikar
2017-05-07 06:46:40 -05:00
committed by skull132
parent 92c3eee90a
commit 36a07fa7b2
4 changed files with 20 additions and 13 deletions

View File

@@ -74,6 +74,10 @@
makepowernets()
powernet_update_queued = FALSE
if (cameranet.cameras_unsorted)
sortTim(cameranet.cameras, /proc/cmp_camera)
cameranet.cameras_unsorted = FALSE
var/list/curr_machinery = src.processing_machinery
var/list/curr_powersinks = src.processing_powersinks