Skip to content

Commit

Permalink
lara: improve jump-twist input detection
Browse files Browse the repository at this point in the history
Resolves #931.
  • Loading branch information
lahm86 authored Aug 22, 2023
1 parent 432ed36 commit 82e222a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [Unreleased](https://github.com/rr-/Tomb1Main/compare/stable...develop) - ××××-××-××
- added the current music track and timestamp to the savegame so they now persist on load (#419)
- added the triggered music tracks to the savegame so one shot tracks don't replay on load (#371)
- added forward/backward input detection in line with TR2+ for jump-twists (#931)
- changed the installer to always overwrite all essential files such as the gameflow and injections (#904)
- changed the data injection system to warn when it detects invalid or missing files, rather than preventing levels from loading (#918)
- changed the gameflow to detect and skip over legacy sequence types, rather than preventing the game from starting (#882)
Expand Down
4 changes: 2 additions & 2 deletions src/game/lara/lara_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void Lara_State_ForwardJump(ITEM_INFO *item, COLL_INFO *coll)
if (g_Input.action && g_Lara.gun_status == LGS_ARMLESS) {
item->goal_anim_state = LS_REACH;
}
if (g_Config.enable_jump_twists && g_Input.roll) {
if (g_Config.enable_jump_twists && (g_Input.roll || g_Input.back)) {
item->goal_anim_state = LS_TWIST;
}
if (g_Input.slow && g_Lara.gun_status == LGS_ARMLESS) {
Expand Down Expand Up @@ -495,7 +495,7 @@ void Lara_State_BackJump(ITEM_INFO *item, COLL_INFO *coll)
item->goal_anim_state = LS_STOP;
} else if (
item->goal_anim_state != LS_STOP && g_Config.enable_jump_twists
&& g_Input.roll) {
&& (g_Input.roll || g_Input.forward)) {
item->goal_anim_state = LS_TWIST;
}
}
Expand Down

0 comments on commit 82e222a

Please sign in to comment.