From 222147665e17d28c68e859e8da2ca782f8ec4730 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 4 Mar 2018 13:36:11 +0000 Subject: [PATCH] Show oxygen level to 1 decimal place. --- src/world/hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/hud.c b/src/world/hud.c index b3fb71f..d20f08a 100644 --- a/src/world/hud.c +++ b/src/world/hud.c @@ -182,7 +182,7 @@ static void drawOxygen(void) drawOutlineRect(35, 58, w, 18, 0, 0, 0, 255); - drawText(35 + w + 5, 57, 14, TA_LEFT, colors.white, "%ds", world.bob->oxygen / FPS); + drawText(35 + w + 5, 57, 14, TA_LEFT, colors.white, "%.1fs", (world.bob->oxygen * 1.0) / FPS); } static void drawInventory(void)