tr2/camera: reset last camera on initialise

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.
This commit is contained in:
lahm86 2024-12-27 15:04:34 +00:00
parent 5ce2bd2d3e
commit d6ad01862c
2 changed files with 2 additions and 0 deletions

View file

@ -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)

View file

@ -30,6 +30,7 @@
void Camera_Initialise(void)
{
g_Camera.last = NO_CAMERA;
Camera_ResetPosition();
Output_AlterFOV(GAME_FOV * PHD_DEGREE);
Camera_Update();