tr2/objects/final_level_counter: reset Lara's water status for cutscene

This ensures Lara's water status is reset before starting the final
cutscene.

Resolves #1701.
This commit is contained in:
lahm86 2024-12-08 12:15:47 +00:00
parent 9a0902fa15
commit 98e79f9da0
3 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,7 @@
- fixed picking up the Gong Hammer in Ice Palace sometimes not opening the nearby door (#1716)
- fixed room 98 in Wreck of the Maria Doria not having water (#1939)
- fixed a potential crash if Lara is on the skidoo in a room with many other adjoining rooms (#1987)
- fixed a softlock in Home Sweet Home if the final cutscene is triggered while Lara is on water surface (#1701)
- removed unused detail level option
## [0.6](https://github.com/LostArtefacts/TRX/compare/tr2-0.5...tr2-0.6) - 2024-11-06

View file

@ -41,6 +41,7 @@ decompilation process. We recognize that there is much work to be done.
- fixed Lara getting stuck in her hit animation if she is hit while mounting the boat or skidoo
- fixed the detonator key and gong hammer not activating their target items when manually selected from the inventory
- fixed a potential crash if Lara is on the skidoo in a room with many other adjoining rooms
- fixed a softlock in Home Sweet Home if the final cutscene is triggered while Lara is on water surface
- fixed the following floor data issues:
- **Opera House**: fixed the trigger under item 203 to trigger it rather than item 204
- **Wreck of the Maria Doria**: fixed room 98 not having water

View file

@ -63,6 +63,8 @@ static void __cdecl M_ActivateLastBoss(void)
static void __cdecl M_PrepareCutscene(const int16_t item_num)
{
g_Lara.water_status = LWS_ABOVE_WATER;
ITEM *const item = &g_Items[item_num];
Creature_Kill(item, 0, 0, LA_EXTRA_FINAL_ANIM);