tr1/data: fix underwater lever animation

This adds a "hands-free" command at the end of Lara's underwater lever
animation, which is in line with TR2. It prevents issues after using an
underwater lever followed by entering the wading state. The additional
check in Lara's state control also matches TR2, which is one that we
missed before.

Resolves #2416.
This commit is contained in:
lahm86 2025-01-31 18:40:55 +00:00
parent 01ef336a1c
commit 3a5fe66e2a
3 changed files with 4 additions and 0 deletions

View file

@ -47,6 +47,7 @@
- fixed various death counter problems (existing saves will have the count reset) (#2412, regression from 2.6)
- fixed `/demo` command crashing the game if no demos are present (regression from 4.1)
- fixed Lara not being able to jump or stop swimming if the related responsive config options are enabled, but enhanced animations are not present (#2397, regression from 4.6)
- fixed Lara being unable to climb or use guns after using an underwater lever and then entering the wading state (#2416, regression from 4.6)
- improved pause screen compatibility with PS1 (#2248)
- improved level loading times with respect to injection processing

View file

@ -1241,6 +1241,9 @@ void Lara_State_Tread(ITEM *item, COLL_INFO *coll)
if (item->fall_speed < 0) {
item->fall_speed = 0;
}
if (g_Lara.gun_status == LGS_HANDS_BUSY) {
g_Lara.gun_status = LGS_ARMLESS;
}
}
void Lara_State_Dive(ITEM *item, COLL_INFO *coll)