Skip to content

Commit

Permalink
Fix player CTF team being reset
Browse files Browse the repository at this point in the history
Resolves #50
  • Loading branch information
SamVanheer committed Feb 5, 2022
1 parent 1bd572c commit b862f3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dlls/ctf/ctfplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,10 @@ void CHalfLifeCTFplay::ChangePlayerTeam(CBasePlayer* pPlayer, const char* pCharN
{
team = CTFTeam::OpposingForce;
}
else
{
return;
}

if (pPlayer->m_iTeamNum != team)
{
Expand Down

0 comments on commit b862f3a

Please sign in to comment.