From bcbe095ef8d172680318632c5d20ccf78b9c0e80 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 5 Jul 2019 00:06:28 +0530 Subject: HDB: Commet out non-compiling code --- engines/hdb/ai-bots.cpp | 6 ++++++ engines/hdb/ai-init.cpp | 4 ++++ engines/hdb/ai.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/engines/hdb/ai-bots.cpp b/engines/hdb/ai-bots.cpp index 2ce54b1f18..f0b6f35aa2 100644 --- a/engines/hdb/ai-bots.cpp +++ b/engines/hdb/ai-bots.cpp @@ -1267,6 +1267,10 @@ void aiDiverterAction(AIEntity *e) { warning("STUB: AI: aiDiverterAction required"); } +void aiDiverterDraw(AIEntity *e, int mx, int my) { +} + +#if 0 void aiDiverterDraw(AIEntity *e, int mx, int my) { int i; if (!e->value1 && !e->value2) @@ -1356,6 +1360,8 @@ void aiDiverterDraw(AIEntity *e, int mx, int my) { } e->movedownFrames++; } +#endif + void aiMeerkatDraw(AIEntity *e, int mx, int my) { warning("STUB: AI: aiMeerkatDraw required"); diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index d6e2b3fb78..5e40823ab7 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -772,6 +772,7 @@ bool AI::init() { _kcHolderBlackOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_black_off1"); _kcHolderBlackOn = g_hdb->_gfx->getTileIndex("t32_kcholder_black_on"); +#if 0 // icepuff snowball icepSnowballGfxDown = icepSnowballGfxLeft = icepSnowballGfxRight = NULL; @@ -784,6 +785,7 @@ bool AI::init() { // laser beam gfxLaserbeamUD[0] = gfxLaserbeamUD[1] = gfxLaserbeamLR[0] = gfxLaserbeamLR[1] = NULL; +#endif _dummyPlayer.type = AI_GUY; _dummyLaser.type = AI_LASERBEAM; @@ -847,6 +849,7 @@ void AI::restartSystem() { memset(_clubLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *)); memset(_clubRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *)); +#if 0 int i; if (icepSnowballGfxDown) { icepSnowballGfxDown->free(); @@ -920,6 +923,7 @@ void AI::restartSystem() { gfxLaserbeamLRRight[i] = NULL; } } +#endif // Clear the Action list memset(_actions, 0, sizeof(_actions)); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 908bd51a65..e7cfd08281 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -766,6 +766,7 @@ struct CineBlit { } #define spawnBlocking(x, y, level) g_hdb->_ai->spawn(AI_NONE, DIR_NONE, x, y, NULL, NULL, NULL, DIR_NONE, level, 0, 0, 0) +#if 0 extern Picture *icepSnowballGfxDown; // ICEPUFF's snowball moving down extern Picture *icepSnowballGfxLeft; // ICEPUFF's snowball moving left extern Picture *icepSnowballGfxRight; // ICEPUFF's snowball moving right @@ -786,6 +787,7 @@ extern Tile *gfxLaserbeamUDBottom[4]; extern Tile *gfxLaserbeamLR[4]; extern Tile *gfxLaserbeamLRLeft[4]; extern Tile *gfxLaserbeamLRRight[4]; +#endif class AI { public: -- cgit v1.2.3