diff options
Diffstat (limited to 'src/shyguy.cpp')
-rw-r--r-- | src/shyguy.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/shyguy.cpp b/src/shyguy.cpp index f524cb9..89f92d0 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -43,6 +43,8 @@ // I_kinoko, I_fireflower, I_propeller_model, I_iceflower, I_star, I_penguin - model names // anmChr - wait2 +void shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther); + class daShyGuy : public dEn_c { int onCreate(); int onDelete(); @@ -78,7 +80,6 @@ class daShyGuy : public dEn_c { void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float rate); void updateModelMatrices(); - void shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther); // void spriteCollision(ActivePhysics *apThis, ActivePhysics *apOther); @@ -158,9 +159,9 @@ daShyGuy *daShyGuy::build() { // Collision callback to help shy guy not die at inappropriate times and ruin the dinner - void daShyGuy::shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther) { + void shyCollisionCallback(ActivePhysics *apThis, ActivePhysics *apOther) { if (apOther->owner->name != 89) { - this->collisionCallback(apThis, apOther); + apThis->owner->collisionCallback(apThis, apOther); } } @@ -362,7 +363,7 @@ int daShyGuy::onCreate() { HitMeBaby.bitfield1 = 0x4F; HitMeBaby.bitfield2 = 0x8828E; HitMeBaby.unkShort1C = 0; - HitMeBaby.callback = shyCollisionCallback; + HitMeBaby.callback = ­CollisionCallback; OSReport("Making the Physics Class and adding to the list\n"); this->aPhysics.initWithStruct(this, &HitMeBaby); @@ -1001,7 +1002,7 @@ void daShyGuy::updateModelMatrices() { } if (this->timer > 600) { - doStateChange(&StateID_Recover) + doStateChange(&StateID_Recover); } this->timer += 1; |