mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
Fix -Wunused in SIGNGAMETRAFFIC
This commit is contained in:
parent
5a475c7888
commit
551c9af0fc
1 changed files with 18 additions and 16 deletions
|
|
@ -4236,23 +4236,25 @@ static size_t TotalTextCmdPerTic(tic_t tic)
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean IsSplitPlayerOnNodeGuest(int node, int split)
|
#ifdef SIGNGAMETRAFFIC
|
||||||
{
|
static boolean IsSplitPlayerOnNodeGuest(int node, int split)
|
||||||
char allZero[32];
|
{
|
||||||
memset(allZero, 0, 32);
|
char allZero[32];
|
||||||
|
memset(allZero, 0, 32);
|
||||||
|
|
||||||
if (split == 0)
|
if (split == 0)
|
||||||
return (memcmp(players[nodetoplayer[node]].public_key, allZero, 32) == 0);
|
return (memcmp(players[nodetoplayer[node]].public_key, allZero, 32) == 0);
|
||||||
else if (split == 1)
|
else if (split == 1)
|
||||||
return (memcmp(players[nodetoplayer2[node]].public_key, allZero, 32) == 0);
|
return (memcmp(players[nodetoplayer2[node]].public_key, allZero, 32) == 0);
|
||||||
else if (split == 2)
|
else if (split == 2)
|
||||||
return (memcmp(players[nodetoplayer3[node]].public_key, allZero, 32) == 0);
|
return (memcmp(players[nodetoplayer3[node]].public_key, allZero, 32) == 0);
|
||||||
else if (split == 3)
|
else if (split == 3)
|
||||||
return (memcmp(players[nodetoplayer4[node]].public_key, allZero, 32) == 0);
|
return (memcmp(players[nodetoplayer4[node]].public_key, allZero, 32) == 0);
|
||||||
else
|
else
|
||||||
I_Error("IsSplitPlayerOnNodeGuest: Out of bounds");
|
I_Error("IsSplitPlayerOnNodeGuest: Out of bounds");
|
||||||
return false; // unreachable
|
return false; // unreachable
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static boolean IsPlayerGuest(int player)
|
static boolean IsPlayerGuest(int player)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue