From: havoc Date: Tue, 27 Dec 2005 04:54:40 +0000 (+0000) Subject: esteel's patch used C99 lazy variable declaration, fixed X-Git-Tag: xonotic-v0.1.0preview~4419 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=adedfea26dc176bb4676f831c8448ecc072e68ed;p=xonotic%2Fdarkplaces.git esteel's patch used C99 lazy variable declaration, fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5868 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sbar.c b/sbar.c index 0e2e5f13..16513a97 100644 --- a/sbar.c +++ b/sbar.c @@ -490,7 +490,7 @@ static int teamsort[MAX_SCOREBOARD]; static int teamlines; void Sbar_SortFrags (void) { - int i, j, k; + int i, j, k, color; // sort by frags scoreboardlines = 0; @@ -530,7 +530,7 @@ void Sbar_SortFrags (void) } // calculate team scores - int color = -1; + color = -1; for (i=0 ; i