Skip to content

Commit

Permalink
Pointless comment shuffling
Browse files Browse the repository at this point in the history
  • Loading branch information
Zandario committed Jan 30, 2024
1 parent 52418bf commit 2528ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/controllers/master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,14 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
var/datum/controller/subsystem/SS
var/SS_flags

// Time to iterate through the list of subsystems.
for (var/thing in subsystemstocheck)
// Check if the subsystem is null and remove it from the list if it is.
if (!thing)
subsystemstocheck -= thing

SS = thing

// Skip subsystems that are not completely idle.
// Skip subsystems that are not idle.
if (SS.state != SS_IDLE)
continue

Expand All @@ -538,7 +537,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
// if(SS.suspended) //TODO: Consider adding SS suspending. @Zandario
// continue

SS_flags = SS.subsystem_flags
SS_flags = SS.subsystem_flags //? Cache the subsystem flags for faster access.

// Skip subsystems with the SS_NO_FIRE flag.
if (SS_flags & SS_NO_FIRE)
Expand All @@ -562,6 +561,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
if(LAZYLEN(SS.vars[check_vars[i]]))
enter_queue = TRUE
break

if(!enter_queue)
SS.hibernating = TRUE
SS.update_nextfire()
Expand Down

0 comments on commit 2528ab7

Please sign in to comment.