diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index a83aed316..c83ccd9d5 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -3421,7 +3421,7 @@ static int G_MaybeTakeOnFloorPal(uspritetype *pSprite, int sectNum) template static int getofs_viewtype(int angDiff) { - return (((angDiff + 3072) & 2047) * rotations + 1024) >> 11; + return ((((angDiff + 3072) & 2047) * rotations + 1024) >> 11) % rotations; } template @@ -3429,8 +3429,7 @@ static int viewtype_mirror(uint16_t & cstat, int frameOffset) { if (frameOffset > rotations / 2) { - if (frameOffset < rotations) - cstat |= 4; + cstat |= 4; return rotations - frameOffset; }