Skip to content

Commit

Permalink
tr2/camera: reset last camera on initialise
Browse files Browse the repository at this point in the history
This resets the last camera on initialisation to prevent issues when
levels begin with an in-game cutscene and then immediately move to a
fixed camera.

Resolves #2129.
  • Loading branch information
lahm86 committed Dec 27, 2024
1 parent 5ce2bd2 commit d6ad018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- fixed Lara prioritising throwing a spent flare while mid-air, so to avoid missing ledge grabs (#1989)
- fixed software renderer not applying underwater tint (#2066, regression from 0.7)
- fixed some enemies not looking at Lara (#2080, regression from 0.6)
- fixed the camera getting stuck at the start of Home Sweet Home (#2129, regression from 0.7)

## [0.7.1](https://github.com/LostArtefacts/TRX/compare/tr2-0.7...tr2-0.7.1) - 2024-12-17
- fixed a crash when selecting the sound option (#2057, regression from 0.6)
Expand Down
1 change: 1 addition & 0 deletions src/tr2/game/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

void Camera_Initialise(void)
{
g_Camera.last = NO_CAMERA;
Camera_ResetPosition();
Output_AlterFOV(GAME_FOV * PHD_DEGREE);
Camera_Update();
Expand Down

0 comments on commit d6ad018

Please sign in to comment.