mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Minor zone/proc/Rebuild() optimization
This commit is contained in:
@@ -229,11 +229,10 @@ zone/proc/Rebuild()
|
||||
if(!contents.len)
|
||||
del src
|
||||
|
||||
var/list/tried_turfs = list()
|
||||
var/list/turfs_to_consider = contents.Copy()
|
||||
do
|
||||
if(sample)
|
||||
tried_turfs |= sample
|
||||
var/list/turfs_to_consider = contents - tried_turfs
|
||||
turfs_to_consider -= sample
|
||||
if(!turfs_to_consider.len)
|
||||
break
|
||||
sample = pick(turfs_to_consider) //Nor this.
|
||||
@@ -260,8 +259,6 @@ zone/proc/Rebuild()
|
||||
T.zone = null
|
||||
problem = 1
|
||||
|
||||
for(var/turf/T in new_contents)
|
||||
|
||||
if(problem)
|
||||
//Build some new zones for stuff that wasn't included.
|
||||
var/list/turf/simulated/rebuild_turfs = contents - new_contents
|
||||
|
||||
Reference in New Issue
Block a user