fix(fgame): properly calculate the number of not ready players

This commit is contained in:
smallmodel committed 2026-02-10 21:39:28 +01:00
1 parent b64ba58654
commit 3e4b989a13
1 file changed
+4 -4
+4 -4
View File
@@ -601,17 +601,17 @@ bool DM_Team::IsEmpty(void) const
int DM_Team::NumNotReady(void) const
{
Player *player;
int num = 0;
int nNotReady = 0;
for (int i = 1; i <= m_players.NumObjects(); i++) {
player = m_players.ObjectAt(i);
if (player->IsReady()) {
i++;
if (!player->IsReady()) {
nNotReady++;
}
}
return num;
return nNotReady;
}
void DM_Team::UpdateTeamStatus(void)