diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-bots.cpp | 1 | ||||
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/ai-lists.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/engines/hdb/ai-bots.cpp b/engines/hdb/ai-bots.cpp index 7018c19291..2d451b601c 100644 --- a/engines/hdb/ai-bots.cpp +++ b/engines/hdb/ai-bots.cpp @@ -755,6 +755,7 @@ void aiRailRiderOnAction(AIEntity *e) { case DIR_DOWN: e->draw = e->movedownGfx[0]; break; case DIR_LEFT: e->draw = e->moveleftGfx[0]; break; case DIR_RIGHT: e->draw = e->moverightGfx[0]; break; + default: break; // DIR_NONE } g_hdb->_map->centerMapXY(e->x + 16, e->y + 16); diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index c00c9251b1..81419fa98b 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -947,7 +947,7 @@ void AI::animateEntity(AIEntity *e) { uint16 buttons = g_hdb->_input->getButtons(); - if (e == _player && (buttons & (kButtonUp || kButtonDown || kButtonLeft || kButtonRight))) { + if (e == _player && (buttons & (kButtonUp | kButtonDown | kButtonLeft | kButtonRight))) { int xva[] = {9, 0, 0, -1, 1}, yva[] = {9, -1, 1, 0, 0}; int nx, ny, result2; diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index 0e4f01eecb..bd3fcbf236 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -95,7 +95,7 @@ void AI::animateTargets() { for (Common::Array<AnimTarget *>::iterator it = _animTargets->begin(); it != _animTargets->end(); it++) { at = *it; - debug(9, "it - _animTargets->begin(): %d", it - _animTargets->begin()); + debug(9, "it - _animTargets->begin(): %ld", it - _animTargets->begin()); debug(9, "at: at->x: %d, at->y: %d, at->start: %d, at->end: %d, at->vel: %d", at->x, at->y, at->start, at->end, at->vel); // Draw Non-Map stuff every frame diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 8fb2c7a3ac..0e2ec3db7c 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -112,7 +112,7 @@ enum Flag { enum { kScreenWidth = 640, - kScreenHeight = 480, + kScreenHeight = 480 }; class HDBGame : public Engine { |