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

lara_control: reset rotation when dismounting vehicle #276

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/game/lara/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down