diff options
author | Nipun Garg | 2019-07-12 06:02:03 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:18 +0200 |
commit | a7e17c07f7df65095c8c02a038204244d791fc39 (patch) | |
tree | e6348a255a4a2b025d3b455e3e14b76fa20d5a97 | |
parent | abe99e332e776820867dab486a2930139c847493 (diff) | |
download | scummvm-rg350-a7e17c07f7df65095c8c02a038204244d791fc39.tar.gz scummvm-rg350-a7e17c07f7df65095c8c02a038204244d791fc39.tar.bz2 scummvm-rg350-a7e17c07f7df65095c8c02a038204244d791fc39.zip |
HDB: Remove redundant warnings
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 11b504a3a3..e3de84599a 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -940,7 +940,6 @@ void AI::animateEntity(AIEntity *e) { _laserRescan = true; break; default: - debug(9, "animateEntity: Unintended Type"); break; } @@ -983,7 +982,6 @@ void AI::animateEntity(AIEntity *e) { hit = NULL; break; default: - debug(9, "animateEntity: Unintended type"); break; } if ((!hit && moveOK) || (bgTileFlags & kFlagPlayerDie)) @@ -995,7 +993,6 @@ void AI::animateEntity(AIEntity *e) { } break; default: - debug(9, "animateEntity: Unintended type"); break; } } else if (e == _player) @@ -1019,7 +1016,7 @@ void AI::animateEntity(AIEntity *e) { case DIR_DOWN: yv = 1; break; case DIR_LEFT: xv = -1; break; case DIR_RIGHT: xv = 1; break; - case DIR_NONE: warning("animateEntity: DIR_NONE found"); break; + case DIR_NONE: break; } bgTileFlags = g_hdb->_map->getMapBGTileFlags(e->tileX + xv, e->tileY + yv); @@ -1076,7 +1073,6 @@ void AI::animateEntity(AIEntity *e) { yOff = 0; break; case DIR_NONE: - warning("AI-FUNCS: animateEntity: DIR_NONE found"); break; } if ((e->tileX + xOff == _waypoints[_numWaypoints - 1].x && @@ -1148,7 +1144,7 @@ void AI::animateEntity(AIEntity *e) { case DIR_DOWN: e->goalY = ny; e->xVel = 0; e->yVel = kPlayerMoveSpeed; e->state = STATE_MOVEDOWN; break; case DIR_LEFT: e->goalX = nx; e->yVel = 0; e->xVel = -kPlayerMoveSpeed; e->state = STATE_MOVELEFT; break; case DIR_RIGHT: e->goalX = nx; e->yVel = 0; e->xVel = kPlayerMoveSpeed; e->state = STATE_MOVERIGHT; break; - case DIR_NONE: warning("animateEntity: DIR_NONE found"); break; + case DIR_NONE: break; } if (_playerRunning) { e->xVel = e->xVel << 1; @@ -1175,7 +1171,7 @@ void AI::animateEntity(AIEntity *e) { _laserRescan = true; break; default: - debug(9, "animateEntity: Unintended State"); + break; } // Checking at the Destination @@ -1224,7 +1220,7 @@ void AI::animateEntity(AIEntity *e) { case DIR_DOWN: yv = 1; break; case DIR_LEFT: xv = -1; break; case DIR_RIGHT: xv = 1; break; - case DIR_NONE: warning("animateEntity: DIR_NONE found"); break; + case DIR_NONE: break; } hit = findEntityIgnore(e->tileX + xv, e->tileY + yv, &_dummyLaser); |