Fixes sign-compare warnings
This commit is contained in:
parent
a1494e938a
commit
9b0f5d9b0d
41 changed files with 109 additions and 108 deletions
|
|
@ -367,7 +367,7 @@ void Net_ClearBuffers()
|
|||
{
|
||||
CloseNetwork();
|
||||
|
||||
for (int i = 0; i < MAXPLAYERS; ++i)
|
||||
for (uint i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
playeringame[i] = false;
|
||||
players[i].waiting = players[i].inconsistant = false;
|
||||
|
|
@ -579,7 +579,7 @@ static size_t GetNetBufferSize()
|
|||
}
|
||||
|
||||
// Header info
|
||||
int totalBytes = 10;
|
||||
uint totalBytes = 10;
|
||||
if (NetBuffer[0] & NCMD_QUITTERS)
|
||||
totalBytes += NetBuffer[totalBytes] + 1;
|
||||
|
||||
|
|
@ -3387,7 +3387,7 @@ CCMD(listmuted)
|
|||
}
|
||||
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAXPLAYERS; ++i)
|
||||
for (uint i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (MutedClients & ((uint64_t)1u << i))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue