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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user