30 f32 angle, magnitude, speedModifier;
32 s32 spinFlags, nonDizzyFlags;
35 s32 firstCall = FALSE;
40 playerStatus->
animFlags &= ~PA_FLAG_INTERRUPT_SPIN;
83 anim = ANIM_Mario1_Spin;
88 anim = ANIM_Mario1_SpinAttack;
91 anim = ANIM_Mario1_Spin;
94 anim = ANIM_Mario1_SpeedySpin;
99 nonDizzyFlags = spinFlags & ~SPIN_TYPE_DIZZY;
120 if (spinFlags != 0) {
146 playerStatus->
animFlags &= ~PA_FLAG_SPINNING;
147 playerStatus->
flags &= ~PS_FLAG_SPINNING;
176 playerStatus->
flags &= ~PS_FLAG_SPINNING;
177 playerStatus->
animFlags &= ~PA_FLAG_SPINNING;
208 if (speedModifier < 0.1) {
209 speedModifier = 0.1f;
213 speedModifier = 0.0f;
229 if (magnitude != 0.0f || playerStatus->
targetYaw != angle) {
233 playerStatus->
curSpeed = (magnitude != 0.0f) ? playerStatus->
runSpeed * speedModifier : 0.0f;
259 playerStatus->
flags &= ~PS_FLAG_SPINNING;
261 }
else if (angle < playerStatus->spriteFacingAngle) {
266 playerStatus->
flags &= ~PS_FLAG_SPINNING;
273 playerStatus->
flags &= ~PS_FLAG_SPINNING;