From 2335a22b0b905d550ad732609c109f028900b070 Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 1 Oct 2009 05:24:26 +0000 Subject: [PATCH] fix "unreachable code" warning some people seem to get git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8001 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/client/sbar.qc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 35a38326d..3c3fd1741 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2209,6 +2209,15 @@ string GetAmmoPicture(float i) } } +void Sbar_Reset (void) +{ + // reset gametype specific icons + if(gametype == GAME_KEYHUNT) + CSQC_kh_hudreset(); + else if(gametype == GAME_CTF) + CSQC_ctf_hudreset(); +} + void Sbar_Draw (void) { // vectors for top right, bottom right, bottom and bottom left corners @@ -2426,7 +2435,7 @@ void Sbar_Draw (void) else Sbar_FinaleOverlay(); - goto reset; + Sbar_Reset(); } else if (sb_showscores_force || getstati(STAT_HEALTH) <= 0 || intermission == 1) { @@ -2437,7 +2446,7 @@ void Sbar_Draw (void) Sbar_Score(); Sbar_Timer(); - goto reset; + Sbar_Reset(); } else { @@ -2639,13 +2648,6 @@ void Sbar_Draw (void) CSQC_nb_hud(); } return; - -:reset - // draw gametype specific icons - if(gametype == GAME_KEYHUNT) - CSQC_kh_hudreset(); - else if(gametype == GAME_CTF) - CSQC_ctf_hudreset(); } // CTF HUD -- 2.39.2