diff options
Diffstat (limited to '')
-rw-r--r-- | src/topman.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/topman.cpp b/src/topman.cpp index 3d309a6..8b99f0d 100644 --- a/src/topman.cpp +++ b/src/topman.cpp @@ -298,6 +298,8 @@ void daTopman::bindAnimChr_and_setUpdateRate(const char* name, int unk, float un } int daTopman::onCreate() { + + this->deleteForever = true; // Model creation allocator.link(-1, GameHeaps[0], 0, 0x20); @@ -394,6 +396,11 @@ int daTopman::onExecute() { acState.execute(); updateModelMatrices(); + float rect[] = {0.0, 0.0, 38.0, 38.0}; + int ret = this->outOfZone(this->pos, (float*)&rect, this->currentZoneID); + if(ret) { + this->Delete(1); + } return true; } |