From 1810015d8f144eeb29923539cab366af0545878c Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 19 Jun 2019 17:26:11 +0530 Subject: HDB: Add restartSystem() and call it from init() --- engines/hdb/ai-init.cpp | 11 ++++++++++- engines/hdb/ai.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'engines/hdb') 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(); -- cgit v1.2.3