]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/teamplay.qc
Using a separate global to keep track of overtime phase
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index 7257156a9693b44b28b4b2ed7698d11702f507eb..61f250f12a757bc492e885971796987674407e3f 100644 (file)
@@ -120,7 +120,7 @@ int Team_GetNumberOfAliveTeams()
        return result;
 }
 
-int Team_GetWinnerTeam_WIthOwnedItems(int min_control_points)
+int Team_GetWinnerTeam_WithOwnedItems(int min_control_points)
 {
        int winner = 0;
        for (int i = 0; i < NUM_TEAMS; ++i)
@@ -714,7 +714,7 @@ void TeamBalance_GetTeamCounts(entity balance, entity ignore)
                        }
                        int team_num;
                        // TODO: Reconsider when the player is truly on the team.
-                       if (IS_CLIENT(it) || (it.caplayer))
+                       if (IS_CLIENT(it) || INGAME(it))
                        {
                                team_num = it.team;
                        }