From a937c669b9ef1a4dde7eb426e39a436699ceef86 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 19 Jun 2019 23:56:48 +0530 Subject: HDB: Add clearPersistent() --- engines/hdb/ai-init.cpp | 6 ++++++ engines/hdb/ai.h | 1 + 2 files changed, 7 insertions(+) diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index b765737212..b7f7a485f8 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -668,6 +668,8 @@ AIEntTypeInfo aiEntList[] = { AI::AI() { _ents = new Common::Array; + // REMOVE: Remove for final. Used here due to lack of a MENU + _numGems = _numGooCups = _numMonkeystones = 0; } AI::~AI() { @@ -683,6 +685,10 @@ bool AI::init() { return true; } +void AI::clearPersistent() { + _numGems = _numGooCups = _numMonkeystones = 0; +} + void AI::restartSystem() { warning("STUB: AI::restartSystem incomplete"); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 0b695ac14d..a5f05bb9a5 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -407,6 +407,7 @@ public: ~AI(); bool init(); + void clearPersistent(); void restartSystem(); // Entity Functions -- cgit v1.2.3