mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 02:01:22 +00:00
Renames smooth var to smoothing_flags (#52427)
* smooth_flags * SMOOTH_FALSE * smooth_flags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user