ref: c8343e995b583eb2f93d396f7eb5380d9bb456c8
parent: 1159572a1a18c196c8450cb1fcc8712d9eacb342
author: Turo Lamminen <[email protected]>
date: Sat Nov 12 12:18:53 EST 2022
hexen: Fix integer overflow in A_SerpentWalk
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -2229,7 +2229,7 @@
//
if (actor->movedir < 8)
{
- actor->angle &= (7 << 29);
+ actor->angle &= (7u << 29);
delta = actor->angle - (actor->movedir << 29);
if (delta > 0)
{