- GCC warning cleanup

SVN r4031 (trunk)
This commit is contained in:
Braden Obrzut 2013-01-21 22:30:30 +00:00
commit dcb1a3c8bd
10 changed files with 18 additions and 17 deletions

View file

@ -523,7 +523,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor
tex = NULL;
voxel = NULL;
unsigned spritenum = thing->sprite;
int spritenum = thing->sprite;
fixed_t spritescaleX = thing->scaleX;
fixed_t spritescaleY = thing->scaleY;
if (thing->player != NULL)
@ -565,7 +565,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor
{
// decide which texture to use for the sprite
#ifdef RANGECHECK
if (spritenum >= (unsigned)sprites.Size ())
if (spritenum >= (signed)sprites.Size () || spritenum < 0)
{
DPrintf ("R_ProjectSprite: invalid sprite number %u\n", spritenum);
return;