- fixed some Linux/GCC warnings.

This commit is contained in:
Christoph Oelckers 2016-02-02 01:04:59 +01:00
parent fe3e56c6bc
commit 6b75f14c0f
3 changed files with 5 additions and 5 deletions

View file

@ -90,7 +90,7 @@ struct F3DFloor
fixed_t delta; fixed_t delta;
int flags; unsigned int flags;
line_t* master; line_t* master;
sector_t * model; sector_t * model;

View file

@ -56,7 +56,7 @@ class SightCheck
fixed_t topslope, bottomslope; // slopes to top and bottom of target fixed_t topslope, bottomslope; // slopes to top and bottom of target
int Flags; int Flags;
divline_t trace; divline_t trace;
int myseethrough; unsigned int myseethrough;
bool PTR_SightTraverse (intercept_t *in); bool PTR_SightTraverse (intercept_t *in);
bool P_SightCheckLine (line_t *ld); bool P_SightCheckLine (line_t *ld);

View file

@ -276,9 +276,9 @@ FPNGTexture::FPNGTexture (FileReader &lump, int lumpnum, const FString &filename
lump.Read (trans, len); lump.Read (trans, len);
HaveTrans = true; HaveTrans = true;
// Save for colortype 2 // Save for colortype 2
NonPaletteTrans[0] = BigShort(((WORD *)trans)[0]); NonPaletteTrans[0] = WORD(trans[0] * 256 + trans[1]);
NonPaletteTrans[1] = BigShort(((WORD *)trans)[1]); NonPaletteTrans[1] = WORD(trans[2] * 256 + trans[3]);
NonPaletteTrans[2] = BigShort(((WORD *)trans)[2]); NonPaletteTrans[2] = WORD(trans[4] * 256 + trans[5]);
break; break;
case MAKE_ID('a','l','P','h'): case MAKE_ID('a','l','P','h'):