mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Random micro optimization to the mc I thought of while looking at something else (#36352)
We can save the second ss_flags access by using bitflag ma~~th~~gic
This commit is contained in:
committed by
Emmett Gaines
parent
e0800a7de4
commit
8855194aae
@@ -405,7 +405,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
|
||||
if (SS_flags & SS_NO_FIRE)
|
||||
subsystemstocheck -= SS
|
||||
continue
|
||||
if (!(SS_flags & SS_TICKER) && (SS_flags & SS_KEEP_TIMING) && SS.last_fire + (SS.wait * 0.75) > world.time)
|
||||
if ((SS_flags & (SS_TICKER|SS_KEEP_TIMING)) == SS_KEEP_TIMING && SS.last_fire + (SS.wait * 0.75) > world.time)
|
||||
continue
|
||||
SS.enqueue()
|
||||
. = 1
|
||||
|
||||
Reference in New Issue
Block a user