mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-04-05 01:41:39 +00:00
Fix accidentially tripped PARANOIA error for teamchanges.
This commit is contained in:
parent
f820733d9b
commit
823497ea06
1 changed files with 8 additions and 8 deletions
|
@ -2531,8 +2531,8 @@ static void Command_Teamchange_f(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (players[consoleplayer].spectator && !(players[consoleplayer].pflags & PF_WANTSTOJOIN) && !NetPacket.packet.newteam)
|
||||
error = true;
|
||||
if (players[consoleplayer].spectator && !NetPacket.packet.newteam)
|
||||
error = !(players[consoleplayer].pflags & PF_WANTSTOJOIN);
|
||||
else if (G_GametypeHasTeams() && NetPacket.packet.newteam == (unsigned)players[consoleplayer].ctfteam)
|
||||
error = true;
|
||||
else if (G_GametypeHasSpectators() && !players[consoleplayer].spectator && NetPacket.packet.newteam == 3)
|
||||
|
@ -2622,8 +2622,8 @@ static void Command_Teamchange2_f(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (players[secondarydisplayplayer].spectator && !(players[secondarydisplayplayer].pflags & PF_WANTSTOJOIN) && !NetPacket.packet.newteam)
|
||||
error = true;
|
||||
if (players[secondarydisplayplayer].spectator && !NetPacket.packet.newteam)
|
||||
error = !(players[secondarydisplayplayer].pflags & PF_WANTSTOJOIN);
|
||||
else if (G_GametypeHasTeams() && NetPacket.packet.newteam == (unsigned)players[secondarydisplayplayer].ctfteam)
|
||||
error = true;
|
||||
else if (G_GametypeHasSpectators() && !players[secondarydisplayplayer].spectator && NetPacket.packet.newteam == 3)
|
||||
|
@ -2713,8 +2713,8 @@ static void Command_Teamchange3_f(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (players[thirddisplayplayer].spectator && !(players[thirddisplayplayer].pflags & PF_WANTSTOJOIN) && !NetPacket.packet.newteam)
|
||||
error = true;
|
||||
if (players[thirddisplayplayer].spectator && !NetPacket.packet.newteam)
|
||||
error = !(players[thirddisplayplayer].pflags & PF_WANTSTOJOIN);
|
||||
else if (G_GametypeHasTeams() && NetPacket.packet.newteam == (unsigned)players[thirddisplayplayer].ctfteam)
|
||||
error = true;
|
||||
else if (G_GametypeHasSpectators() && !players[thirddisplayplayer].spectator && NetPacket.packet.newteam == 3)
|
||||
|
@ -2804,8 +2804,8 @@ static void Command_Teamchange4_f(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (players[fourthdisplayplayer].spectator && !(players[fourthdisplayplayer].pflags & PF_WANTSTOJOIN) && !NetPacket.packet.newteam)
|
||||
error = true;
|
||||
if (players[fourthdisplayplayer].spectator && !NetPacket.packet.newteam)
|
||||
error = !(players[fourthdisplayplayer].pflags & PF_WANTSTOJOIN);
|
||||
else if (G_GametypeHasTeams() && NetPacket.packet.newteam == (unsigned)players[fourthdisplayplayer].ctfteam)
|
||||
error = true;
|
||||
else if (G_GametypeHasSpectators() && !players[fourthdisplayplayer].spectator && NetPacket.packet.newteam == 3)
|
||||
|
|
Loading…
Reference in a new issue