shithub: choc

Download patch

ref: a3abf64a05dee1b6203538deed39753002e910ea
parent: 69116f7c48f8a3993aa5fd208135e3ea9598224e
author: Simon Howard <fraggle@gmail.com>
date: Thu Oct 23 17:34:39 EDT 2008

Fix Heretic/Hexen demo desyncs.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1360

--- a/src/heretic/p_enemy.c
+++ b/src/heretic/p_enemy.c
@@ -434,7 +434,7 @@
     }
     else
     {
-        for (tdir = DI_SOUTHEAST; tdir >= DI_EAST; tdir--)
+        for (tdir = DI_SOUTHEAST; tdir != DI_EAST-1; tdir--)
         {
             if (tdir != turnaround)
             {
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -428,7 +428,7 @@
     }
     else
     {
-        for (tdir = DI_SOUTHEAST; tdir >= DI_EAST; tdir--)
+        for (tdir = DI_SOUTHEAST; tdir != DI_EAST-1; tdir--)
         {
             if (tdir != turnaround)
             {