aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cruise/actor.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}