From 19f953a58e91cf6b46257a8c05c1082378917a22 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Fri, 24 Feb 2012 13:14:24 -0600 Subject: more shy guy junk, almost done! --- src/shyguy.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/shyguy.cpp b/src/shyguy.cpp index e838516..378a220 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -286,7 +286,7 @@ daShyGuy *daShyGuy::build() { if (this->damage > 2) { doStateChange(&StateID_DieSmoke); - this._vf14C(); + this->_vf14C(); } else { doStateChange(stateVar); @@ -951,9 +951,10 @@ void daShyGuy::updateModelMatrices() { pos.x = this->pos.x; pos.y = this->pos.y; pos.z = this->pos.z; - + dStageActor_c *spawned; + if (this->direction == 1) { - dStageActor_c *spawned = CreateActor(89, 0x2, pos, 0, 0); + spawned = CreateActor(89, 0x2, pos, 0, 0); spawned->scale.x = 0.5; spawned->scale.y = 0.5; spawned->scale.z = 0.5; @@ -962,7 +963,7 @@ void daShyGuy::updateModelMatrices() { spawned->speed.y = 2.0; } else { - dStageActor_c *spawned = CreateActor(89, 0x12, pos, 0, 0); + spawned = CreateActor(89, 0x12, pos, 0, 0); spawned->scale.x = 0.5; spawned->scale.y = 0.5; spawned->scale.z = 0.5; -- cgit v1.2.3