From 98da304558dc655f8ee62000912abaafa3a0f300 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 21 Nov 2003 04:53:41 +0000 Subject: [PATCH] this should fix the scores in deathmatch (thanks, xi) --- nq/source/sbar.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/nq/source/sbar.c b/nq/source/sbar.c index 6d146b2f9..53b43c712 100644 --- a/nq/source/sbar.c +++ b/nq/source/sbar.c @@ -455,15 +455,6 @@ draw_solo (view_t *view) draw_string (view, 232 - l * 4, 12, cl.levelname); } - -static void -Sbar_DrawScoreboard (void) -{ - //Sbar_SoloScoreboard (); - //if (cl.gametype == GAME_DEATHMATCH) - // Sbar_DeathmatchOverlay (overlay_view); -} - static void draw_ammo_sbar (view_t *view) { @@ -1003,14 +994,6 @@ draw_hipnotic_status (view_t *view) draw_pic (view, 209, 12, sb_items[1]); } -static void -draw_overlay (view_t *view) -{ - if (sb_showscores || cl.stats[STAT_HEALTH] <= 0) { - Sbar_DrawScoreboard (); - } -} - void Sbar_Draw (void) { @@ -1090,6 +1073,22 @@ Sbar_DeathmatchOverlay (view_t *view) } } +static void +Sbar_DrawScoreboard (void) +{ + //Sbar_SoloScoreboard (); + if (cl.gametype == GAME_DEATHMATCH) + Sbar_DeathmatchOverlay (overlay_view); +} + +static void +draw_overlay (view_t *view) +{ + if (sb_showscores || cl.stats[STAT_HEALTH] <= 0) { + Sbar_DrawScoreboard (); + } +} + static void draw_time (view_t *view) {