Renames smooth var to smoothing_flags (#52427)

* smooth_flags

* SMOOTH_FALSE

* smooth_flags
This commit is contained in:
Rohesie
2020-07-29 05:19:23 -03:00
committed by GitHub
parent e752f8de2e
commit cb9f81e43c
36 changed files with 122 additions and 138 deletions

View File

@@ -15,7 +15,7 @@ SUBSYSTEM_DEF(icon_smooth)
while(length(cached))
var/atom/smoothing_atom = cached[length(cached)]
cached.len--
if(QDELETED(smoothing_atom) || !(smoothing_atom.smooth & SMOOTH_QUEUED))
if(QDELETED(smoothing_atom) || !(smoothing_atom.smoothing_flags & SMOOTH_QUEUED))
continue
if(smoothing_atom.flags_1 & INITIALIZED_1)
smooth_icon(smoothing_atom)
@@ -41,7 +41,7 @@ SUBSYSTEM_DEF(icon_smooth)
while(length(queue))
var/atom/smoothing_atom = queue[length(queue)]
queue.len--
if(QDELETED(smoothing_atom) || !(smoothing_atom.smooth & SMOOTH_QUEUED) || smoothing_atom.z <= 2)
if(QDELETED(smoothing_atom) || !(smoothing_atom.smoothing_flags & SMOOTH_QUEUED) || smoothing_atom.z <= 2)
continue
smooth_icon(smoothing_atom)
CHECK_TICK
@@ -60,15 +60,15 @@ SUBSYSTEM_DEF(icon_smooth)
/datum/controller/subsystem/icon_smooth/proc/add_to_queue(atom/thing)
if(thing.smooth & SMOOTH_QUEUED)
if(thing.smoothing_flags & SMOOTH_QUEUED)
return
thing.smooth |= SMOOTH_QUEUED
thing.smoothing_flags |= SMOOTH_QUEUED
smooth_queue += thing
if(!can_fire)
can_fire = TRUE
/datum/controller/subsystem/icon_smooth/proc/remove_from_queues(atom/thing)
thing.smooth &= ~SMOOTH_QUEUED
thing.smoothing_flags &= ~SMOOTH_QUEUED
smooth_queue -= thing
blueprint_queue -= thing
deferred -= thing