Some list optimizations, heretic ruins optimization (#94386)

This commit is contained in:
Bloop
2025-12-13 08:27:31 +01:00
committed by GitHub
parent b9794b9457
commit 376588db04
4 changed files with 255 additions and 243 deletions
+3 -1
View File
@@ -57,7 +57,7 @@ GLOBAL_LIST_INIT(trait_blockers_to_hud, list(
var/list/mob/hud_users_all_z_levels = list()
///these will be the indexes for the atom's hud_list
var/list/hud_icons = list()
var/list/hud_icons
///mobs associated with the next time this hud can be added to them
var/list/next_time_allowed = list()
@@ -75,6 +75,8 @@ GLOBAL_LIST_INIT(trait_blockers_to_hud, list(
for(var/z_level in 1 to world.maxz)
hud_atoms += list(list())
hud_users += list(list())
if(LAZYLEN(hud_icons))
hud_icons = string_list(hud_icons)
RegisterSignal(SSdcs, COMSIG_GLOB_NEW_Z, PROC_REF(add_z_level_huds))