Fixed camera behaviour on sloped surfaces after player's death

This commit is contained in:
Lwmte 2024-11-03 09:29:52 +01:00
parent 79679554e3
commit f1f2d165c5
2 changed files with 2 additions and 2 deletions

View file

@ -24,6 +24,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Fixed incorrect diving animation when swandiving from a high place.
* Fixed room clipping when flyby path goes out of room bounds.
* Fixed camera rotating with the player's hips when climbing out of water.
* Fixed camera behaviour on sloped surfaces after player's death.
* Fixed camera position after loading a savegame.
* Fixed broken ropes after loading a savegame.
* Fixed AI for TR2 Skidoo driver and Worker with shotgun.

View file

@ -1289,8 +1289,7 @@ void CalculateCamera(const CollisionInfo& coll)
Camera.DisableInterpolation = (Camera.DisableInterpolation || Camera.lastType != Camera.type);
Camera.lastType = Camera.type;
if ((Camera.type != CameraType::Heavy || Camera.timer == -1) &&
LaraItem->HitPoints > 0)
if (Camera.type != CameraType::Heavy || Camera.timer == -1)
{
Camera.type = CameraType::Chase;
Camera.speed = 10;