Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 9ad0bb8

Browse files
authored
lara_control: reset rotation when dismounting vehicle (#276)
Resolves #275.
1 parent 397a7bc commit 9ad0bb8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- added `/sfx` command
33
- fixed crash in the `/set` console command (regression from 0.3)
44
- fixed using console in cutscenes immediately exiting the game (regression from 0.3)
5+
- fixed Lara remaining tilted when teleporting off a vehicle while on a slope (#275, regression from 0.3)
56

67
## [0.3](https://github.com/LostArtefacts/TR2X/compare/0.2-460-g4721b93...0.3) - 2024-09-20
78
- added new console commands:

src/game/lara/control.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,9 @@ void Lara_GetOffVehicle(void)
979979
g_LaraItem->goal_anim_state = LS_STOP;
980980
g_LaraItem->anim_num = LA_STAND_STILL;
981981
g_LaraItem->frame_num = g_Anims[g_LaraItem->anim_num].frame_base;
982+
983+
g_LaraItem->rot.x = 0;
984+
g_LaraItem->rot.z = 0;
982985
}
983986
}
984987

0 commit comments

Comments
 (0)