Merge pull request #40 from kafeijao/master
Fixed inverted controls when airborne
This commit is contained in:
@@ -277,7 +277,7 @@ void update_lava_boost_or_twirling(struct MarioState *m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void update_flying_yaw(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 (targetYawVel > 0) {
|
||||||
if (m->angleVel[1] < 0) {
|
if (m->angleVel[1] < 0) {
|
||||||
@@ -306,7 +306,7 @@ void update_flying_yaw(struct MarioState *m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void update_flying_pitch(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 (targetPitchVel > 0) {
|
||||||
if (m->angleVel[0] < 0) {
|
if (m->angleVel[0] < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user