From 2d4ee5459bb1a028967ebe72d33110ad1373e39e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 4 Jul 2021 17:30:35 +0200 Subject: [PATCH] [MIRROR] Changes a line of the master controller to make it easier to read (#6699) * Changes a line of the master controller to make it easier to read (#59974) * Changes a line of the master controller to make it easier to read Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> --- code/controllers/master.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/master.dm b/code/controllers/master.dm index 1adaa35cd6f..6f1bb8650ed 100644 --- a/code/controllers/master.dm +++ b/code/controllers/master.dm @@ -480,7 +480,8 @@ GLOBAL_REAL(Master, /datum/controller/master) = new tick_remaining = TICK_LIMIT_RUNNING - TICK_USAGE if (current_tick_budget > 0 && queue_node_priority > 0) - tick_precentage = tick_remaining / (current_tick_budget / queue_node_priority) + //Give the subsystem a precentage of the remaining tick based on the remaning priority + tick_precentage = tick_remaining * (queue_node_priority / current_tick_budget) else tick_precentage = tick_remaining