- GCC warning fixes (GCC stupidity for the most part.)
SVN r3154 (trunk)
This commit is contained in:
parent
1ea5cc8bd8
commit
1993e969b7
38 changed files with 152 additions and 119 deletions
|
|
@ -2318,7 +2318,7 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
for (i = 0; i < argn; ++i)
|
||||
{
|
||||
int argval = ReadLong(stream);
|
||||
if (i < countof(arg))
|
||||
if ((unsigned)i < countof(arg))
|
||||
{
|
||||
arg[i] = argval;
|
||||
}
|
||||
|
|
@ -2337,7 +2337,7 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
for (i = 0; i < argn; ++i)
|
||||
{
|
||||
int argval = ReadLong(stream);
|
||||
if (i < countof(arg))
|
||||
if ((unsigned)i < countof(arg))
|
||||
{
|
||||
arg[i] = argval;
|
||||
}
|
||||
|
|
@ -2426,7 +2426,7 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
{
|
||||
players[player].weapons.Slots[slot].Clear();
|
||||
}
|
||||
for(int i = 0; i < count; ++i)
|
||||
for(i = 0; i < count; ++i)
|
||||
{
|
||||
const PClass *wpn = Net_ReadWeapon(stream);
|
||||
players[player].weapons.AddSlot(slot, wpn, player == consoleplayer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue