diff options
author | Nipun Garg | 2019-06-19 17:26:11 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:49 +0200 |
commit | 1810015d8f144eeb29923539cab366af0545878c (patch) | |
tree | f0ef32fce5bd70c14562c756a11e1d0bbe95c26c /engines | |
parent | 0da23abccf315485270f194090504631c6f13e33 (diff) | |
download | scummvm-rg350-1810015d8f144eeb29923539cab366af0545878c.tar.gz scummvm-rg350-1810015d8f144eeb29923539cab366af0545878c.tar.bz2 scummvm-rg350-1810015d8f144eeb29923539cab366af0545878c.zip |
HDB: Add restartSystem() and call it from init()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-init.cpp | 11 | ||||
-rw-r--r-- | engines/hdb/ai.h | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 74bfa92b0d..a9f9639cd3 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -675,7 +675,16 @@ AI::~AI() { } bool AI::init() { - warning("STUB: AI::init required"); + warning("STUB: AI::init incomplete"); + + restartSystem(); return true; } + +void AI::restartSystem() { + warning("STUB: AI::restartSystem incomplete"); + + // Clear the Entity List + _ents->clear(); +} } // End of Namespace diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 3c1a4ca472..67276d034d 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -397,6 +397,8 @@ public: ~AI(); bool init(); + void restartSystem(); + // Cinematic Functions void processCines(); |