From b248c4d1f5f2771f95f53306aecca6adfad43845 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sun, 30 Aug 2020 15:44:19 +0200 Subject: [PATCH] Show 2 digits in item processor --- src/js/game/systems/item_processor_overlays.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/js/game/systems/item_processor_overlays.js b/src/js/game/systems/item_processor_overlays.js index 8a3be8ff..2ec91b88 100644 --- a/src/js/game/systems/item_processor_overlays.js +++ b/src/js/game/systems/item_processor_overlays.js @@ -88,10 +88,7 @@ export class ItemProcessorOverlaysSystem extends GameSystem { parameters.context.textAlign = "center"; parameters.context.font = "bold 10px GameFont"; parameters.context.fillText( - "" + - (G_IS_DEV - ? round4Digits(readerComp.lastThroughput) - : Math.round(readerComp.lastThroughput * 10) / 10), + "" + Math.round(readerComp.lastThroughput * 10) / 10, (staticComp.origin.x + 0.5) * globalConfig.tileSize, (staticComp.origin.y + 0.62) * globalConfig.tileSize );