diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 23de298a7..9ebadd0c6 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 + (1024/rotations)) & 2047) / (2048/rotations); + return (((angDiff + 3072) & 2047) * rotations + 1024) >> 11; } template