Check for super character in team, don't annoy them more than expected

This commit is contained in:
gerdoe-jr 2024-01-16 20:28:40 +03:00
parent bb3bd57c0e
commit 40ed4bb98f
No known key found for this signature in database
GPG key ID: 8E7DAD13A115B8A8

View file

@ -266,6 +266,7 @@ void CGameTeams::Tick()
}
for(int i = 0; i < MAX_CLIENTS; i++)
{
bool TeamHasSuperCharacter = false;
if(((TeamHasWantedStartTime >> i) & 1) == 0)
{
continue;
@ -279,6 +280,8 @@ void CGameTeams::Tick()
aPlayerNames[0] = 0;
for(int j = 0; j < MAX_CLIENTS; j++)
{
if(GameServer()->GetPlayerChar(j) && GameServer()->GetPlayerChar(j)->IsSuper())
TeamHasSuperCharacter = true;
if(m_Core.Team(j) == i && !m_aTeeStarted[j])
{
if(aPlayerNames[0])
@ -289,7 +292,7 @@ void CGameTeams::Tick()
NumPlayersNotStarted += 1;
}
}
if(!aPlayerNames[0])
if(!aPlayerNames[0] || TeamHasSuperCharacter)
{
continue;
}