aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-init.cpp6
-rw-r--r--engines/hdb/ai.h1
2 files changed, 7 insertions, 0 deletions
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<AIEntity *>;
+ // 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