aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/entities/sophie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/entities/sophie.cpp')
-rw-r--r--engines/lastexpress/entities/sophie.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/entities/sophie.cpp b/engines/lastexpress/entities/sophie.cpp
index cda72bdfff..9136cb21cc 100644
--- a/engines/lastexpress/entities/sophie.cpp
+++ b/engines/lastexpress/entities/sophie.cpp
@@ -70,8 +70,8 @@ IMPLEMENT_FUNCTION_II(2, Sophie, updateEntity, CarIndex, EntityPosition)
CarIndex rebeccaCar = getEntityData(kEntityRebecca)->car;
if (getEntities()->isDistanceBetweenEntities(kEntitySophie, kEntityRebecca, 500)
- || (direction == kDirectionUp && (car > rebeccaCar || car == rebeccaCar && position > rebecca_position))
- || (direction == kDirectionDown && (car < rebeccaCar || car == rebeccaCar && position < rebecca_position))) {
+ || (direction == kDirectionUp && (car > rebeccaCar || (car == rebeccaCar && position > rebecca_position)))
+ || (direction == kDirectionDown && (car < rebeccaCar || (car == rebeccaCar && position < rebecca_position)))) {
getData()->field_49B = 0;
params->param3 = 1;
}