From 979f40f900db66dc417bef91f0658b40bf6bc862 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Sun, 24 Nov 2019 22:50:31 +0000 Subject: [PATCH] Fix missing angle mask for Anubis AI --- source/exhumed/src/anubis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exhumed/src/anubis.cpp b/source/exhumed/src/anubis.cpp index 5429ab9b0..c3892fd31 100644 --- a/source/exhumed/src/anubis.cpp +++ b/source/exhumed/src/anubis.cpp @@ -251,7 +251,7 @@ void FuncAnubis(int a, int nDamage, int nRun) } case 0x8000: { - sprite[nSprite].ang += 256; + sprite[nSprite].ang = (sprite[nSprite].ang + 256) & kAngleMask; sprite[nSprite].xvel = Sin(sprite[nSprite].ang + 512) >> 2; sprite[nSprite].yvel = Sin(sprite[nSprite].ang) >> 2; break;