mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
tr2/flares: fix flare throw reset test
This reverts to testing open upper end frame range when Lara throws a flare. Resolves #2545.
This commit is contained in:
parent
e806297ad7
commit
b1e24182fc
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue