]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure local Team is an int (potential but unlikely fix for an assertion failure)
authorMario <mario@smbclan.net>
Wed, 23 Aug 2017 12:37:18 +0000 (22:37 +1000)
committerMario <mario@smbclan.net>
Wed, 23 Aug 2017 12:37:18 +0000 (22:37 +1000)
qcsrc/client/hud/panel/scoreboard.qc

index 34ecd834f7ec682ca1e6c1c00d9f8164928e783a..3a11bdb1e7f0085aba298ff439644428dfc7e253 100644 (file)
@@ -153,13 +153,12 @@ float SetTeam(entity pl, float Team);
 //float lastpnum;
 void Scoreboard_UpdatePlayerTeams()
 {
-       float Team;
        entity pl, tmp;
        //int num = 0;
        for(pl = players.sort_next; pl; pl = pl.sort_next)
        {
                //num += 1;
-               Team = entcs_GetScoreTeam(pl.sv_entnum);
+               int Team = entcs_GetScoreTeam(pl.sv_entnum);
                if(SetTeam(pl, Team))
                {
                        tmp = pl.sort_prev;