aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-funcs.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-04 01:20:44 +0530
committerEugene Sandulenko2019-09-03 17:17:10 +0200
commit1e5e8ed4ec734d9a3c9ed2e696a765b7d4e08898 (patch)
tree5e86c3b602415a2942d0d672c220ab6078d93994 /engines/hdb/ai-funcs.cpp
parent1b2437900cd30b0d6b7626a9ff2e59e063598b01 (diff)
downloadscummvm-rg350-1e5e8ed4ec734d9a3c9ed2e696a765b7d4e08898.tar.gz
scummvm-rg350-1e5e8ed4ec734d9a3c9ed2e696a765b7d4e08898.tar.bz2
scummvm-rg350-1e5e8ed4ec734d9a3c9ed2e696a765b7d4e08898.zip
HDB: Unstub 'Cache graphics for Deliveries'
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r--engines/hdb/ai-funcs.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index e7cbfe9bd5..0b70b2fd64 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -728,7 +728,8 @@ void AI::initAllEnts() {
}
}
- for (int i = 0; i < _numInventory; i++) {
+ int i;
+ for (i = 0; i < _numInventory; i++) {
AIEntity *temp = _inventory[i].ent;
// Clear out all ptrs in entity before writing
@@ -762,7 +763,10 @@ void AI::initAllEnts() {
cacheEntGfx(temp, false);
}
- warning("STUB: initAllEnts: Cache graphics for Deliveries");
+ for (i = 0; i < _numDeliveries; i++) {
+ _deliveries[i].itemGfx = g_hdb->_gfx->getTileGfx(_deliveries[i].itemGfxName, -1);
+ _deliveries[i].destGfx = g_hdb->_gfx->getTileGfx(_deliveries[i].destGfxName, -1);
+ }
warning("STUB: initAllEnts: LaserScan required");
}
@@ -1844,7 +1848,7 @@ void AI::moveEnts() {
}
// Call aiAction for all other Entities
- for (int i = 0; i < _ents->size(); i++) {
+ for (uint i = 0; i < _ents->size(); i++) {
e = _ents->operator[](i);
if (e->aiAction) {
// NPC Touchplate Counter