diff options
author | Nipun Garg | 2019-06-21 09:34:05 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:54 +0200 |
commit | aec87e7058c788e7d37d1e639056d616b1ff56e2 (patch) | |
tree | bf1d5792913c623096ededdc7b593598d091123f | |
parent | 4d22df8037f6e7da6c3df5ca342b631b67fe40d9 (diff) | |
download | scummvm-rg350-aec87e7058c788e7d37d1e639056d616b1ff56e2.tar.gz scummvm-rg350-aec87e7058c788e7d37d1e639056d616b1ff56e2.tar.bz2 scummvm-rg350-aec87e7058c788e7d37d1e639056d616b1ff56e2.zip |
HDB: Add _floats data
Addition includes struct and member variables
-rw-r--r-- | engines/hdb/ai-init.cpp | 10 | ||||
-rw-r--r-- | engines/hdb/ai.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 183f0288ad..e03f456bbc 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -668,12 +668,22 @@ AIEntTypeInfo aiEntList[] = { AI::AI() { _ents = new Common::Array<AIEntity *>; + _floats = new Common::Array<AIEntity *>; + + for (int i = 0; i < kMaxLevel2Ents;i++) { + _entsLevel2[i] = new AIEntLevel2; + } + // REMOVE: Remove for final. Used here due to lack of a MENU _numGems = _numGooCups = _numMonkeystones = _numInventory = 0; } AI::~AI() { delete _ents; + delete _floats; + for (int i = 0; i < kMaxLevel2Ents;i++) { + delete _entsLevel2[i]; + } } bool AI::init() { diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 6ab3a8b86d..c29f1c8ad8 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -747,6 +747,7 @@ public: private: Common::Array<AIEntity *> *_ents; + Common::Array<AIEntity *> *_floats; AIEntity *_player; // Cinematics Variables |