From c94d2fb3d08e7358fed2f7e14b715b6d60bc2ffc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 14 Nov 2022 19:25:28 +0100 Subject: [PATCH] - made DDukeActor::movflag unsigned. Due to the values it holds it cannot be a signed short as this would wrap around to something negative. --- source/games/duke/src/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/types.h b/source/games/duke/src/types.h index 9443201af..217cec57c 100644 --- a/source/games/duke/src/types.h +++ b/source/games/duke/src/types.h @@ -41,7 +41,8 @@ public: uint8_t cgg; uint8_t spriteextra; // moved here for easier maintenance. This was originally a hacked in field in the sprite structure called 'filler'. - short attackertype, hitextra, movflag; + uint16_t movflag; + short attackertype, hitextra; short tempval, dispicnum, basepicnum; unsigned short timetosleep; DVector2 ovel;