1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-11 15:45:05 +02:00

Bug Fix: Jump Forward.

In the original game, pressing Jump + (Left || Right) should allow Lara
to jump forward too. In OpenLara this is not possible as the input code
only checks if forward flag is set when pressed. Not forward + (Left ||
Right) resuling in Lara not being able to jump forward and only straight
up in these cases.
This commit is contained in:
Gh0stBlade
2017-04-29 10:56:12 +01:00
parent 5db4b54bd0
commit bfaa12d10b

View File

@@ -1431,6 +1431,8 @@ struct Lara : Character {
switch (input & (RIGHT | LEFT | FORTH | BACK)) {
case RIGHT : return STATE_RIGHT_JUMP;
case LEFT : return STATE_LEFT_JUMP;
case FORTH | LEFT :
case FORTH | RIGHT :
case FORTH : return STATE_FORWARD_JUMP;
case BACK : return STATE_BACK_JUMP;
default : return STATE_UP_JUMP;