diff options
-rw-r--r-- | engines/hdb/ai.h | 2 | ||||
-rw-r--r-- | engines/hdb/gfx.cpp | 6 | ||||
-rw-r--r-- | engines/hdb/input.cpp | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index ab8cb9abe4..43f857daad 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -383,7 +383,7 @@ enum CallbackType { struct AIStateDef { AIState state; - const char name[64]; + const char *name; }; struct AIEntity { diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 05adecb1a6..aba874213e 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -1052,7 +1052,8 @@ void Gfx::drawDebugInfo(Tile *_debugLogo, int fps) { } } -Picture::Picture() : _width(0), _height(0), _name("") { +Picture::Picture() : _width(0), _height(0) { + _name[0] = 0; _surface.create(_width, _height, g_hdb->_format); } @@ -1109,7 +1110,8 @@ int Picture::drawMasked(int x, int y, int alpha) { return 0; } -Tile::Tile() : _flags(0), _name("") { +Tile::Tile() : _flags(0) { + _name[0] = 0; _surface.create(32, 32, g_hdb->_format); } diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp index b8f9660c81..91b3a97589 100644 --- a/engines/hdb/input.cpp +++ b/engines/hdb/input.cpp @@ -145,6 +145,7 @@ void Input::stylusDown(int x, int y) { g_hdb->_menu->processInput(x, y); break; case GAME_PLAY: + { // Is Player Dead? Click on TRY AGAIN if (g_hdb->_ai->playerDead()) { if (y >= kTryRestartY && y <= kTryRestartY + 24) { @@ -220,6 +221,7 @@ void Input::stylusDown(int x, int y) { g_hdb->setTargetXY(worldX, worldY); break; + } case GAME_LOADING: break; } |