From 1884742ca2a1652835b6d4ab5ee45f123186b897 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Tue, 13 Mar 2018 03:32:18 -0700 Subject: [PATCH] Random micro optimization to the mc I thought of while looking at something else We can save the second ss_flags access by using bitflag ma~~th~~gic (Ported from tgstation/tgstation#36352) --- code/controllers/master.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/master.dm b/code/controllers/master.dm index 6cfd051727..997e0fd3e0 100644 --- a/code/controllers/master.dm +++ b/code/controllers/master.dm @@ -385,7 +385,7 @@ var/datum/controller/master/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