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

Commit

Permalink
lara_control: reset rotation when dismounting vehicle (#276)
Browse files Browse the repository at this point in the history
Resolves #275.
  • Loading branch information
lahm86 authored Sep 29, 2024
1 parent 397a7bc commit 9ad0bb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 9ad0bb8

Please sign in to comment.