aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 17:36:00 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commitb176af31e268ea888079a58df279e5de53b633c0 (patch)
tree37e72f601f908fd12111dd40b6c19220767008af /engines
parenta8256ee3c1a108f8ea88c98cec6274618fbb5c80 (diff)
downloadscummvm-rg350-b176af31e268ea888079a58df279e5de53b633c0.tar.gz
scummvm-rg350-b176af31e268ea888079a58df279e5de53b633c0.tar.bz2
scummvm-rg350-b176af31e268ea888079a58df279e5de53b633c0.zip
HDB: Call locateEntity to complete stubs
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-cinematic.cpp2
-rw-r--r--engines/hdb/lua-script.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index 8f6c5c1ee3..92f4a94203 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -136,7 +136,7 @@ void AI::processCines() {
}
break;
case C_SETENTITY:
- warning("STUB: AI::locateEntity required");
+ _cine[i]->e = locateEntity(_cine[i]->string);
if (_cine[i]->e) {
_cine[i]->e->tileX = (int)_cine[i]->x / kTileWidth;
_cine[i]->e->x = (int)_cine[i]->x;
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 2f2802bd4a..e8c31c4338 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -339,7 +339,7 @@ static int setEntity(lua_State *L) {
g_hdb->_lua->checkParameters("setEntity", 4);
lua_pop(L, 4);
- warning("STUB: LuaScript setEntity: locateEntity needed");
+ e = g_hdb->_ai->locateEntity(entName);
if (e) {
e->x = (int)x * kTileWidth;
e->tileX = (int)x;
@@ -349,7 +349,7 @@ static int setEntity(lua_State *L) {
e->goalX = e->goalY = e->xVel = e->yVel = 0;
e->state = STATE_STANDDOWN;
} else {
- warning("Could'nt SetEntity on '%s'", entName);
+ warning("Couldn't SetEntity on '%s'", entName);
}
return 0;
}