Skip to content

Commit

Permalink
lara: fix TR2 style walk-run-jump
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Aug 22, 2023
1 parent 82e222a commit 0615d49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 0615d49

Please sign in to comment.