mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user