- fixed some warnings

This commit is contained in:
Christoph Oelckers 2019-09-19 14:18:44 +02:00
parent b600d3ff56
commit ea631cb6ac
2 changed files with 2 additions and 2 deletions

View file

@ -3252,7 +3252,7 @@ int A_Spawn(int spriteNum, int tileNum)
int const startWall = sector[sectNum].wallptr;
int const endWall = startWall + sector[sectNum].wallnum;
pSprite->extra = ((uint16_t)sector[sectNum].hitag != UINT16_MAX);
pSprite->extra = (uint16_t)((uint16_t)sector[sectNum].hitag != UINT16_MAX);
// TRAIN_SECTOR_TO_SE_INDEX
sector[sectNum].hitag = newSprite;

View file

@ -4332,7 +4332,7 @@ rr_badguy:
int const startWall = sector[sectNum].wallptr;
int const endWall = startWall + sector[sectNum].wallnum;
pSprite->extra = ((uint16_t)sector[sectNum].hitag != UINT16_MAX);
pSprite->extra = (uint16_t)((uint16_t)sector[sectNum].hitag != UINT16_MAX);
// TRAIN_SECTOR_TO_SE_INDEX
sector[sectNum].hitag = newSprite;