mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 07:32:04 -05:00
Merge pull request #40 from kafeijao/master
Fixed inverted controls when airborne
This commit is contained in:
commit
4842cd3ed8
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue