From ea631cb6acdd6efe724f3739c6690e0271295785 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 19 Sep 2019 14:18:44 +0200 Subject: [PATCH] - fixed some warnings --- source/duke3d/src/game.cpp | 2 +- source/rr/src/game.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 1985fe208..79810e0ac 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -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; diff --git a/source/rr/src/game.cpp b/source/rr/src/game.cpp index 3c754b2d8..a35b626b5 100644 --- a/source/rr/src/game.cpp +++ b/source/rr/src/game.cpp @@ -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;