aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-07-20 08:03:33 +0200
committerEugene Sandulenko2019-09-03 17:17:25 +0200
commitbd26cda952e2f36d3138c7d8a6143a9a60597d80 (patch)
tree08e9aa05cea283372e2090028c4538961fbeed6e /engines
parent252c6e61c9bddd9db1b9325d9c622b13736a92d7 (diff)
downloadscummvm-rg350-bd26cda952e2f36d3138c7d8a6143a9a60597d80.tar.gz
scummvm-rg350-bd26cda952e2f36d3138c7d8a6143a9a60597d80.tar.bz2
scummvm-rg350-bd26cda952e2f36d3138c7d8a6143a9a60597d80.zip
HDB: Fix compilation for MSVC9
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai.h2
-rw-r--r--engines/hdb/gfx.cpp6
-rw-r--r--engines/hdb/input.cpp2
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;
}