From 7d8b019a42e1adda7c571d79ccd208c4e2159dbf Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 23 Feb 2012 22:55:50 -0600 Subject: broken builds with linker error again --- src/shyguy.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/shyguy.cpp') diff --git a/src/shyguy.cpp b/src/shyguy.cpp index 15bf0d6..22d157f 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -77,6 +77,9 @@ class daShyGuy : public dEn_c { bool isBouncing; float balloonSize; + RideableActorCollider giantRider; + + static daShyGuy *build(); void bindAnimChr_and_setUpdateRate(const char* name, int unk, float unk2, float rate); @@ -448,7 +451,9 @@ int daShyGuy::onCreate() { ActivePhysics::Info HitMeBaby; if (type > 8) { - this->scale = (Vec){40.0, 40.0, 40.0}; + this->scale = (Vec){40.0f, 40.0f, 40.0f}; + + giantRider.init(this, -24.0f, 28.0f, 24.0f, 28.0f); HitMeBaby.xDistToCenter = 0.0; HitMeBaby.yDistToCenter = 24.0; @@ -569,6 +574,10 @@ int daShyGuy::onDraw() { balloonModelB.scheduleForDrawing(); } + if (type > 8) { + giantRider.update(); + } + return true; } -- cgit v1.2.3