]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
esteel's patch used C99 lazy variable declaration, fixed
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Dec 2005 04:54:40 +0000 (04:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 Dec 2005 04:54:40 +0000 (04:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5868 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 0e2e5f139e7a81632cc12974514b26b227294de6..16513a97b9d54e5e5432ce03639a69f25aeb7fbc 100644 (file)
--- 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<scoreboardlines ; i++)
                {
                        if (color != cl.scores[fragsort[i]].colors)