From 2ae183a48326eb8543ff9b7926364b86800c4467 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 28 May 2009 12:16:23 +0000 Subject: Fix for pathfinding bug that could occasionally stop the player from moving svn-id: r40960 --- engines/cruise/actor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/cruise/actor.cpp') diff --git a/engines/cruise/actor.cpp b/engines/cruise/actor.cpp index fcc89d15a2..36ba6e4b8b 100644 --- a/engines/cruise/actor.cpp +++ b/engines/cruise/actor.cpp @@ -168,7 +168,7 @@ void polydroite(int x1, int y1, int x2, int y2) { X = modelVar9; Y = modelVar10; - if (flag_obstacle == 0) { + if ((flag_obstacle == 0) || (cx == 0)) { flag_obstacle = 1; return; } @@ -259,7 +259,7 @@ void poly2(int x1, int y1, int x2, int y2) { X = modelVar9; Y = modelVar10; - if (flag_obstacle != 0) { + if ((flag_obstacle != 0) || (cx == 0)) { flag_obstacle = 1; return; } -- cgit v1.2.3