[nexuiz-commits] r8001 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 1 01:24:27 EDT 2009


Author: div0
Date: 2009-10-01 01:24:26 -0400 (Thu, 01 Oct 2009)
New Revision: 8001

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
fix "unreachable code" warning some people seem to get


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-10-01 02:14:59 UTC (rev 8000)
+++ trunk/data/qcsrc/client/sbar.qc	2009-10-01 05:24:26 UTC (rev 8001)
@@ -2209,6 +2209,15 @@
 	}
 }
 
+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 @@
   		else
 			Sbar_FinaleOverlay();
 
-		goto reset;
+		Sbar_Reset();
 	}
 	else if (sb_showscores_force || getstati(STAT_HEALTH) <= 0 || intermission == 1)
 	{
@@ -2437,7 +2446,7 @@
 		Sbar_Score();
 		Sbar_Timer();
 
-		goto reset;
+		Sbar_Reset();
   	}
 	else
 	{
@@ -2639,13 +2648,6 @@
 			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



More information about the nexuiz-commits mailing list