mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Got_TeamChange: Successfully remove PF_WANTSTOJOIN if you use changeteam spectator to cancel your join
This commit is contained in:
parent
693c177572
commit
edf4f7c205
1 changed files with 5 additions and 1 deletions
|
|
@ -3708,11 +3708,15 @@ static void Got_Teamchange(const UINT8 **cp, INT32 playernum)
|
||||||
//Now that we've done our error checking and killed the player
|
//Now that we've done our error checking and killed the player
|
||||||
//if necessary, put the player on the correct team/status.
|
//if necessary, put the player on the correct team/status.
|
||||||
|
|
||||||
|
// This serves us in both teamchange contexts.
|
||||||
if (NetPacket.packet.newteam != 0)
|
if (NetPacket.packet.newteam != 0)
|
||||||
{
|
{
|
||||||
// This serves us in both teamchange contexts.
|
|
||||||
players[playernum].pflags |= PF_WANTSTOJOIN;
|
players[playernum].pflags |= PF_WANTSTOJOIN;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
players[playernum].pflags &= ~PF_WANTSTOJOIN;
|
||||||
|
}
|
||||||
|
|
||||||
if (G_GametypeHasTeams())
|
if (G_GametypeHasTeams())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue