Fixed swapped joystick in UQM

This commit is contained in:
pelya
2010-12-31 10:36:34 +00:00
parent 62b6731332
commit 83cb2ccd2c
2 changed files with 5 additions and 4 deletions

View File

@@ -568,7 +568,7 @@ BATTLE_INPUT_STATE GetDirectionalJoystickInput(int direction)
angle -= atan2i_PI * 2;
angle = angle * SHIP_DIRECTIONS / atan2i_PI / 2;
diff = angle - direction + SHIP_DIRECTIONS / 4;
diff = angle - direction - SHIP_DIRECTIONS / 4;
while( diff >= SHIP_DIRECTIONS )
diff -= SHIP_DIRECTIONS;
while( diff < 0 )