Skip to content

Commit

Permalink
tr2/flares: fix flare throw reset test
Browse files Browse the repository at this point in the history
This reverts to testing open upper end frame range when Lara throws a
flare.

Resolves #2545.
  • Loading branch information
lahm86 committed Feb 23, 2025
1 parent e806297 commit b1e2418
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- added a `/cheats` console command
- added a `/wireframe` console command (#2500)
- fixed smashed windows blocking enemy pathing after loading a save (#2535)
- fixed a rare issue whereby Lara would be unable to move after disposing a flare (#2545, regression from 0.9)

## [0.9.2](https://github.com/LostArtefacts/TRX/compare/tr2-0.9.1...tr2-0.9.2) - 2025-02-19
- fixed secret rewards not handed out after loading a save (#2528, regression from 0.8)
Expand Down
4 changes: 2 additions & 2 deletions src/tr2/decomp/flares.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ void Flare_Undraw(void)
if (Item_TestAnimEqual(g_LaraItem, LA_FLARE_THROW)) {
g_Lara.flare_control_left = 0;

if (Item_TestFrameRange(
g_LaraItem, LF_FL_THROW_FT - 1, LF_FL_THROW_END)) {
if (frame_num_2 >= Anim_GetAnim(LA_FLARE_THROW)->frame_base
+ LF_FL_THROW_FT - 1) {
g_Lara.gun_type = g_Lara.last_gun_type;
g_Lara.request_gun_type = g_Lara.last_gun_type;
g_Lara.gun_status = LGS_ARMLESS;
Expand Down
1 change: 0 additions & 1 deletion src/tr2/decomp/flares.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
typedef enum {
LF_FL_HOLD_FT = 1,
LF_FL_THROW_FT = 32,
LF_FL_THROW_END = 35,
LF_FL_DRAW_FT = 39,
LF_FL_IGNITE_FT = 23,
LF_FL_2_HOLD_FT = 15,
Expand Down

0 comments on commit b1e2418

Please sign in to comment.