From b5b2a113ff3daf3e64227c068c3e38dbdcf3dd7c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 16 Jul 2019 20:01:44 +0200 Subject: HDB: Fix bug from the original --- engines/hdb/ai-waypoint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/hdb/ai-waypoint.cpp b/engines/hdb/ai-waypoint.cpp index 4147354faa..dac332863b 100644 --- a/engines/hdb/ai-waypoint.cpp +++ b/engines/hdb/ai-waypoint.cpp @@ -39,7 +39,7 @@ void AI::addWaypoint(int px, int py, int x, int y, int level) { int ny = y; if (!_numWaypoints) { // if player is already moving and this is the first waypoint, forget it. - // player is using the keyboard and must be fully stopped before laying + // player is using the keyboard and must be fully stopped before laying // the first waypoint if (_player->goalX) return; @@ -327,7 +327,7 @@ void AI::addWaypoint(int px, int py, int x, int y, int level) { if (nx == px && ny == py) return; - // make sure potential waypoint isn't on other waypoints! + // make sure potential waypoint isn't on other waypoints! for (i = 0; i < _numWaypoints; i++) if (_waypoints[i].x == nx && _waypoints[i].y == ny) return; @@ -429,7 +429,7 @@ bool AI::traceStraightPath(int x1, int y1, int *x2, int *y2, int *level) { // if it's blocking, is it rad or plasma? (might be melted stuff on it) if (!ok) { ok = ((flags & kFlagPlasmaFloor) == kFlagPlasmaFloor) + - ((flags & kFlagPlasmaFloor) == kFlagRadFloor); + ((flags & kFlagRadFloor) == kFlagRadFloor); e = findEntity(x1, y1); if (e && g_hdb->_ai->walkThroughEnt(e->type)) entOK = 1; -- cgit v1.2.3