Merge pull request #8065 from dobrykafe/pr-solo-practice-bug

Fix practice mode not resetting after disconnect on solo servers
This commit is contained in:
heinrich5991 2024-03-05 15:20:34 +00:00 committed by GitHub
commit 44bf0134f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1065,7 +1065,7 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon)
ChangeTeamState(Team, CGameTeams::TEAMSTATE_OPEN); ChangeTeamState(Team, CGameTeams::TEAMSTATE_OPEN);
if(m_aPractice[Team]) if(m_aPractice[Team])
{ {
if(Weapon == WEAPON_SELF) if(Weapon != WEAPON_WORLD)
{ {
ResetRoundState(Team); ResetRoundState(Team);
} }