mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Quite possibly the smallest microoptimization here (#519)
This commit is contained in:
committed by
Poojawa
parent
682a00b768
commit
da2bde0e5a
@@ -145,10 +145,11 @@
|
|||||||
|
|
||||||
/datum/controller/subsystem/proc/pause()
|
/datum/controller/subsystem/proc/pause()
|
||||||
. = 1
|
. = 1
|
||||||
if (state == SS_RUNNING)
|
switch(state)
|
||||||
state = SS_PAUSED
|
if(SS_RUNNING)
|
||||||
else if (state == SS_SLEEPING)
|
state = SS_PAUSED
|
||||||
state = SS_PAUSING
|
if(SS_SLEEPING)
|
||||||
|
state = SS_PAUSING
|
||||||
|
|
||||||
|
|
||||||
//used to initialize the subsystem AFTER the map has loaded
|
//used to initialize the subsystem AFTER the map has loaded
|
||||||
@@ -208,4 +209,4 @@
|
|||||||
next_fire = world.time + wait
|
next_fire = world.time + wait
|
||||||
if ("queued_priority") //editing this breaks things.
|
if ("queued_priority") //editing this breaks things.
|
||||||
return 0
|
return 0
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user