From 6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 16:18:48 +0530 Subject: HDB: Move the _map and _ai code into the game loop --- engines/hdb/hdb.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 03e5d694b3..d3feec6440 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -172,10 +172,6 @@ Common::Error HDBGame::run() { return Common::kReadingFailed; } - _map->load(mapStream); - _drawMan->drawSky(); - _map->draw(); - #if 0 lua->executeFile("test.lua"); #endif @@ -196,6 +192,11 @@ Common::Error HDBGame::run() { } } + _map->load(mapStream); + _drawMan->drawSky(); + _map->draw(); + _ai->processCines(); + g_system->updateScreen(); g_system->delayMillis(10); } -- cgit v1.2.3