rename a bunch of atom flags

This commit is contained in:
spookerton
2022-10-17 17:38:20 +01:00
parent bb472b4832
commit ffba11e5ab
76 changed files with 156 additions and 145 deletions

View File

@@ -24,7 +24,7 @@ SUBSYSTEM_DEF(overlays)
icon_cache.Cut()
cache_size = 0
for (var/atom/atom)
atom.atom_flags &= ~OVERLAY_QUEUED
atom.atom_flags &= ~ATOM_AWAITING_OVERLAY_UPDATE
CHECK_TICK
@@ -85,7 +85,7 @@ SUBSYSTEM_DEF(overlays)
result += GetIconAppearance(entry)
else
if (isloc(entry))
if (entry.atom_flags & OVERLAY_QUEUED)
if (entry.atom_flags & ATOM_AWAITING_OVERLAY_UPDATE)
entry.ImmediateOverlayUpdate()
if (!ispath(entry))
result += entry.appearance
@@ -97,10 +97,10 @@ SUBSYSTEM_DEF(overlays)
/// Enqueues the atom for an overlay update if not already queued
/atom/proc/QueueOverlayUpdate()
if (atom_flags & OVERLAY_QUEUED)
if (atom_flags & ATOM_AWAITING_OVERLAY_UPDATE)
return
SSoverlays.queue += src
atom_flags |= OVERLAY_QUEUED
atom_flags |= ATOM_AWAITING_OVERLAY_UPDATE
/// Builds the atom's overlay state from caches
@@ -109,7 +109,7 @@ SUBSYSTEM_DEF(overlays)
if (length(overlays))
overlays.Cut()
return
atom_flags &= ~OVERLAY_QUEUED
atom_flags &= ~ATOM_AWAITING_OVERLAY_UPDATE
if (length(priority_overlays))
if (length(our_overlays))
overlays = priority_overlays + our_overlays