Got_TeamChange: Successfully remove PF_WANTSTOJOIN if you use changeteam spectator to cancel your join
This commit is contained in:
parent
8273c91adf
commit
8ce9681bd8
1 changed files with 11 additions and 0 deletions
|
|
@ -5035,6 +5035,17 @@ static void Got_Teamchange(UINT8 **cp, INT32 playernum)
|
|||
|
||||
//Now that we've done our error checking and killed the player
|
||||
//if necessary, put the player on the correct team/status.
|
||||
|
||||
// This serves us in both teamchange contexts.
|
||||
if (NetPacket.packet.newteam != 0)
|
||||
{
|
||||
players[playernum].pflags |= PF_WANTSTOJOIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
players[playernum].pflags &= ~PF_WANTSTOJOIN;
|
||||
}
|
||||
|
||||
if (G_GametypeHasTeams())
|
||||
{
|
||||
if (!NetPacket.packet.newteam)
|
||||
|
|
|
|||
Loading…
Reference in a new issue