Merge pull request #40 from kafeijao/master

Fixed inverted controls when airborne
This commit is contained in:
Jeremy Burns 2023-03-02 19:48:26 -07:00 committed by GitHub
commit 4842cd3ed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ void update_lava_boost_or_twirling(struct MarioState *m) {
}
void update_flying_yaw(struct MarioState *m) {
s16 targetYawVel = -(s16)(m->controller->stickX * (m->forwardVel / 4.0f));
s16 targetYawVel = (s16)(m->controller->stickX * (m->forwardVel / 4.0f));
if (targetYawVel > 0) {
if (m->angleVel[1] < 0) {
@ -306,7 +306,7 @@ void update_flying_yaw(struct MarioState *m) {
}
void update_flying_pitch(struct MarioState *m) {
s16 targetPitchVel = -(s16)(m->controller->stickY * (m->forwardVel / 5.0f));
s16 targetPitchVel = (s16)(m->controller->stickY * (m->forwardVel / 5.0f));
if (targetPitchVel > 0) {
if (m->angleVel[0] < 0) {