Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lara: fix TR2 style walk-run-jump #937

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- fixed dead centaurs exploding again after saving and reloading (#924)
- fixed the incorrect starting animation on centaurs that spawn from statues (#926, regression from 2.15)
- fixed jump-twist animations at times being interrupted (#932, regression from 2.15.1)
- fixed walk-run-jump at times breaking when TR2 jumping is enabled (OG bug in TR2+) (#934)
- improve spanish localization and added translation for rotated pickups

## [2.15.3](https://github.com/rr-/Tomb1Main/compare/2.15.2...2.15.3) - 2023-08-15
Expand Down
3 changes: 3 additions & 0 deletions src/game/lara/lara_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ void Lara_State_Walk(ITEM_INFO *item, COLL_INFO *coll)

if (g_Input.forward) {
item->goal_anim_state = g_Input.slow ? LS_WALK : LS_RUN;
if (g_Config.enable_tr2_jumping && !g_Input.slow) {
m_JumpPermitted = true;
}
} else {
item->goal_anim_state = LS_STOP;
}
Expand Down