aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 16:18:48 +0530
committerEugene Sandulenko2019-09-03 17:16:48 +0200
commit6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d (patch)
treedd765058aa9c29e18ad3649b32017db113d3623c /engines
parent6a7d3a05d5e870f289ab099fd20c50e3b4ad13bb (diff)
downloadscummvm-rg350-6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d.tar.gz
scummvm-rg350-6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d.tar.bz2
scummvm-rg350-6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d.zip
HDB: Move the _map and _ai code into the game loop
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/hdb.cpp9
1 files 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);
}