aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-16 20:01:44 +0200
committerEugene Sandulenko2019-09-03 17:17:21 +0200
commitb5b2a113ff3daf3e64227c068c3e38dbdcf3dd7c (patch)
tree6464a6f4ce3f4868a0d6ea9466168572229cf0f2
parent6789a868f0f390534ad0ce282344266e032a5f0a (diff)
downloadscummvm-rg350-b5b2a113ff3daf3e64227c068c3e38dbdcf3dd7c.tar.gz
scummvm-rg350-b5b2a113ff3daf3e64227c068c3e38dbdcf3dd7c.tar.bz2
scummvm-rg350-b5b2a113ff3daf3e64227c068c3e38dbdcf3dd7c.zip
HDB: Fix bug from the original
-rw-r--r--engines/hdb/ai-waypoint.cpp6
1 files 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;