Remove some world loops (#2965)

changes:

Replaces a lot of in-world loops with more specific lists.
Recipes are now copied in SSmachinery/Recover()
Fixed bad sorting on all_areas list.
Added skeleton Destroy() to SMESes as they did not have one and are failing to GC.
Seems to shorten SSatoms init a bit, maybe from removal of in-world in MULEs?
This commit is contained in:
Lohikar
2017-07-09 00:24:28 +03:00
committed by skull132
parent 219fa07bc9
commit 33c61f9f1e
32 changed files with 92 additions and 114 deletions
@@ -6,5 +6,5 @@
if(!.)
return
for(var/obj/machinery/light/L in world)
for(var/obj/machinery/light/L in machines)
L.fix()
@@ -16,7 +16,7 @@
return
gravity_is_on = !gravity_is_on
for(var/area/A in world)
for(var/area/A in all_areas)
A.gravitychange(gravity_is_on,A)
feedback_inc("admin_secrets_fun_used",1)
+1 -1
View File
@@ -313,7 +313,7 @@
newmeme.clearHUD()
var/found = 0
for(var/mob/living/carbon/human/H in world) if(H.client && !H.parasites.len)
for(var/mob/living/carbon/human/H in player_list) if(!H.parasites.len)
found = 1
newmeme.enter_host(H)
+2 -2
View File
@@ -4,7 +4,7 @@
/mob/dead/observer/on_mob_jump()
stop_following()
/client/proc/Jump(var/area/A in return_sorted_areas())
/client/proc/Jump(var/area/A in all_areas)
set name = "Jump to Area"
set desc = "Area to jump to"
set category = "Admin"
@@ -150,7 +150,7 @@
set name = "Send Mob"
if(!check_rights(R_ADMIN|R_MOD|R_DEBUG))
return
var/area/A = input(usr, "Pick an area.", "Pick an area") in return_sorted_areas()
var/area/A = input(usr, "Pick an area.", "Pick an area") in all_areas
if(A)
if(config.allow_admin_jump)
M.on_mob_jump()