From 42fa773aaf6736030df6781382b1fdb9408b963b Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 2 Mar 2018 18:42:19 -0600 Subject: [PATCH] [MIRROR] Fixes backup light rounding (#5759) * Fixes backup light rounding - #36060 * Fixes backup light rounding --- code/modules/power/lighting.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index a182e86074..faad79664e 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -388,7 +388,7 @@ if(LIGHT_BROKEN) to_chat(user, "The [fitting] has been smashed.") if(cell) - to_chat(user, "Its backup power charge meter reads [(cell.charge / cell.maxcharge) * 100]%.") + to_chat(user, "Its backup power charge meter reads [round((cell.charge / cell.maxcharge) * 100, 0.1)]%.")