From 9ad0bb809c788af5351c6f7c937985c873ba09cf Mon Sep 17 00:00:00 2001 From: lahm86 <33758420+lahm86@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:56:21 +0100 Subject: [PATCH] lara_control: reset rotation when dismounting vehicle (#276) Resolves #275. --- CHANGELOG.md | 1 + src/game/lara/control.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b97eeea6..c957bc2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - added `/sfx` command - fixed crash in the `/set` console command (regression from 0.3) - fixed using console in cutscenes immediately exiting the game (regression from 0.3) +- fixed Lara remaining tilted when teleporting off a vehicle while on a slope (#275, regression from 0.3) ## [0.3](https://github.com/LostArtefacts/TR2X/compare/0.2-460-g4721b93...0.3) - 2024-09-20 - added new console commands: diff --git a/src/game/lara/control.c b/src/game/lara/control.c index ac6fb0c0..68b23ba6 100644 --- a/src/game/lara/control.c +++ b/src/game/lara/control.c @@ -979,6 +979,9 @@ void Lara_GetOffVehicle(void) g_LaraItem->goal_anim_state = LS_STOP; g_LaraItem->anim_num = LA_STAND_STILL; g_LaraItem->frame_num = g_Anims[g_LaraItem->anim_num].frame_base; + + g_LaraItem->rot.x = 0; + g_LaraItem->rot.z = 0; } }