aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-funcs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 2b74dd2061..1d22805424 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -953,7 +953,9 @@ void AI::animateEntity(AIEntity *e) {
warning("AI-FUNCS: animateEntity: DIR_NONE found");
break;
}
- if ((e->tileX+xOff == _waypoints[_numWaypoints-1].x && e->tileY + yOff == _waypoints[_numWaypoints - 1].y) && e->level == _waypoints[_numWaypoints - 1].level) {
+ if ((e->tileX + xOff == _waypoints[_numWaypoints - 1].x &&
+ e->tileY + yOff == _waypoints[_numWaypoints - 1].y) &&
+ e->level == _waypoints[_numWaypoints - 1].level) {
memset(&_waypoints[0], 0, sizeof(_waypoints));
_numWaypoints = 1;
_waypoints[0].x = e->tileX + xOff;