summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/heretic/p_enemy.c2
-rw-r--r--src/hexen/p_enemy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/heretic/p_enemy.c b/src/heretic/p_enemy.c
index 376704fe..1097b612 100644
--- a/src/heretic/p_enemy.c
+++ b/src/heretic/p_enemy.c
@@ -434,7 +434,7 @@ void P_NewChaseDir(mobj_t * actor)
}
else
{
- for (tdir = DI_SOUTHEAST; tdir >= DI_EAST; tdir--)
+ for (tdir = DI_SOUTHEAST; tdir != DI_EAST-1; tdir--)
{
if (tdir != turnaround)
{
diff --git a/src/hexen/p_enemy.c b/src/hexen/p_enemy.c
index b7009510..41cc2fdd 100644
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -428,7 +428,7 @@ void P_NewChaseDir(mobj_t * actor)
}
else
{
- for (tdir = DI_SOUTHEAST; tdir >= DI_EAST; tdir--)
+ for (tdir = DI_SOUTHEAST; tdir != DI_EAST-1; tdir--)
{
if (tdir != turnaround)
{