mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
rename a bunch of atom flags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user