From c24ea5ae1ff5cc8d8bcc8b32c6c2b69bee6aeb38 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 11 Feb 2017 21:42:35 +0000 Subject: [PATCH] Fold kmatrix_status_msg format string --- similar/main/kmatrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/similar/main/kmatrix.cpp b/similar/main/kmatrix.cpp index 00b816e72..02ba4a1de 100644 --- a/similar/main/kmatrix.cpp +++ b/similar/main/kmatrix.cpp @@ -162,10 +162,10 @@ static void kmatrix_status_msg (fix time, int reactor) gr_set_curfont(GAME_FONT); gr_set_fontcolor(*grd_curcanv, gr_find_closest_color(255, 255, 255),-1); - if (reactor) - gr_printf(*grd_curcanv, 0x8000, SHEIGHT-LINE_SPACING, "Waiting for players to finish level. Reactor time: T-%d", time); - else - gr_printf(*grd_curcanv, 0x8000, SHEIGHT-LINE_SPACING, "Level finished. Wait (%d) to proceed or ESC to Quit.", time); + gr_printf(*grd_curcanv, 0x8000, SHEIGHT - LINE_SPACING, reactor + ? "Waiting for players to finish level. Reactor time: T-%d" + : "Level finished. Wait (%d) to proceed or ESC to Quit." + , time); } namespace {