From 21ad09ef3d91df203dd84fa3b2991cb9fabfe82d Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 25 Jul 2016 03:48:08 +0000 Subject: [PATCH] Fold show_netplayerinfo gr_string calls --- similar/main/gamerend.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/similar/main/gamerend.cpp b/similar/main/gamerend.cpp index 862df99c9..d79c20136 100644 --- a/similar/main/gamerend.cpp +++ b/similar/main/gamerend.cpp @@ -176,13 +176,10 @@ static void show_netplayerinfo() // player information (name, kills, ping, game efficiency) y += line_spacing * 2; gr_string(x,y,"player"); - if (Game_mode & GM_MULTI_COOP) - gr_string(x + fspacx8 * 7, y, "score"); - else - { - gr_string(x + fspacx8 * 7, y, "kills"); - gr_string(x + fspacx8 * 12, y, "deaths"); - } + gr_string(x + fspacx8 * 7, y, ((Game_mode & GM_MULTI_COOP) + ? "score" + : (gr_string(x + fspacx8 * 12, y, "deaths"), "kills") + )); gr_string(x + fspacx8 * 18, y, "ping"); gr_string(x + fspacx8 * 23, y, "efficiency");