Fixed leveljump vehicle transfer

This commit is contained in:
Lwmte 2024-09-23 00:23:49 +02:00
parent d62ae232ee
commit f8f20a071c
2 changed files with 5 additions and 1 deletions

View file

@ -10,6 +10,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
### Bug fixes
* Fixed original issue with classic switch off trigger incorrectly activating some trigger actions.
* Fixed vehicle transfer on leveljump.
* Fixed incorrect diving animation when swandiving from a high place.
* Fixed camera rotating with the player's hips when climbing out of water.
* Fixed AI for TR2 skidoo driver and worker with shotgun.
@ -26,7 +27,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed teeth spikes not triggering the player impale animation.
* Fixed TR4 mine crash with OCB 1 when triggered.
* Fixed cases where Atlantean mutant's bombs cause the game to crash.
* Fixed young hair drawing. https://tombengine.com/docs/level-settings/#young_lara
* Fixed young Lara hair drawing. https://tombengine.com/docs/level-settings/#young_lara
### Features/Amendments

View file

@ -122,6 +122,9 @@ void InitializeLaraAnims(ItemInfo* item)
player.LeftArm.Locked = false;
player.RightArm.Locked = false;
if (PlayerVehicleObjectID != GAME_OBJECT_ID::ID_NO_OBJECT)
return;
if (TestEnvironment(ENV_FLAG_WATER, item))
{
SetAnimation(item, LA_UNDERWATER_IDLE);