aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-lists.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-06 02:42:48 +0530
committerEugene Sandulenko2019-09-03 17:17:13 +0200
commitc63e7c838b1e00fa43af6160fb82ab259b68fe3f (patch)
tree8611988dbb75d39a71a10f1602f7c5f3f7dcf1cc /engines/hdb/ai-lists.cpp
parent59417482096b378fe9cc6b65bd35b0dc9ffa13bb (diff)
downloadscummvm-rg350-c63e7c838b1e00fa43af6160fb82ab259b68fe3f.tar.gz
scummvm-rg350-c63e7c838b1e00fa43af6160fb82ab259b68fe3f.tar.bz2
scummvm-rg350-c63e7c838b1e00fa43af6160fb82ab259b68fe3f.zip
HDB: Unstub stubs
Diffstat (limited to 'engines/hdb/ai-lists.cpp')
-rw-r--r--engines/hdb/ai-lists.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp
index 53084dd46f..a8e6511cd1 100644
--- a/engines/hdb/ai-lists.cpp
+++ b/engines/hdb/ai-lists.cpp
@@ -794,7 +794,10 @@ bool AI::checkTeleportList(AIEntity *e, int x, int y) {
}
// PANIC ZONE Teleports?
- warning("STUB: checkTeleporterList: Toggle Panic Zone");
+ if (anim2 >= 2)
+ g_hdb->_window->startPanicZone();
+ else
+ g_hdb->_window->stopPanicZone();
// Is there an attack gem still floating around?
for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) {
@@ -849,7 +852,7 @@ void AI::addToTriggerList(char *luaFuncInit, char *luaFuncUse, int x, int y, int
strcpy(t->luaFuncUse, luaFuncUse);
if (!t->luaFuncUse[0])
- warning("STUB: addToTriggerList: Open MessageBar");
+ g_hdb->_window->openMessageBar("Trigger without USE!", 10);
if (t->luaFuncInit[0]) {
g_hdb->_lua->pushFunction(t->luaFuncInit);