diff options
author | Colin Noga <Tempus@chronometry.ca> | 2013-05-16 13:33:37 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2013-05-16 13:33:37 -0500 |
commit | f9200ae310a06738a8fa8bf899e1a39123f12b9c (patch) | |
tree | 1069d35f579639ef67147e6e9622d38e623324c4 /src/topman.cpp | |
parent | de9e756406c063438cdf808142e5766e28afe845 (diff) | |
download | kamek-f9200ae310a06738a8fa8bf899e1a39123f12b9c.tar.gz kamek-f9200ae310a06738a8fa8bf899e1a39123f12b9c.zip |
Fixed shy guy coin bug, judo/spike thrower bug introduced in RC4, topman sound bug
Diffstat (limited to 'src/topman.cpp')
-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; } |