ref: b1b6b060d4acddde9b01bbe51c70955c011883d3
parent: 22a3794c3848186631d5e5bdd61b9eefcb8563ac
author: Turo Lamminen <turol@iki.fi>
date: Sat Nov 12 11:32:06 EST 2022
doom: Fix integer overflow in A_Chase
--- a/src/doom/p_enemy.c
+++ b/src/doom/p_enemy.c
@@ -684,7 +684,7 @@
// turn towards movement direction if not there yet
if (actor->movedir < 8)
{
- actor->angle &= (7<<29);
+ actor->angle &= (7u << 29);
delta = actor->angle - (actor->movedir << 29);
if (delta > 0)