Fixed a similar bug to the BLJs, but this time for shells.

This commit is contained in:
Colton Rushton 2021-02-15 20:02:31 -04:00
parent 55856eb755
commit 9198ad87ae
1 changed files with 6 additions and 0 deletions

View File

@ -386,7 +386,13 @@ void update_shell_speed(struct MarioState *m) {
//! No backward speed cap (shell hyperspeed)
if (m->forwardVel > 64.0f) {
m->forwardVel = 64.0f;
#if !BUGFIX_BLJ
}
#else
} else if (m->forwardVel < -64.0f) {
m->forwardVel = -64.0f;
}
#endif
m->faceAngle[1] =
m->intendedYaw - approach_s32((s16)(m->intendedYaw - m->faceAngle[1]), 0, 0x800, 0x800);