- fix tripod camera Y target position on cutscene pause (#116)

This commit is contained in:
Ilya Shurumov 2021-05-24 18:47:38 +06:00 committed by InspirationByte
parent bf8421340b
commit f5925b889a
2 changed files with 3 additions and 5 deletions

View File

@ -106,7 +106,8 @@ void CalcCameraBasePos(PLAYER* lp)
gte_rtv0tr();
gte_stlvnl(basePos);
basePos[1] -= gCameraOffset.vy;
if(gInGameCutsceneActive == 0)
basePos[1] -= gCameraOffset.vy;
baseDir = car_data[lp->cameraCarId].hd.direction;
}
@ -134,6 +135,7 @@ void InitCamera(PLAYER *lp)
gCameraAngle = 2048;
gCameraMaxDistance = 0;
gCameraOffset.vx = 0;
gCameraOffset.vy = 0;
gCameraOffset.vz = 0;

View File

@ -177,10 +177,6 @@ void HandleInGameCutscene(void)
if (CameraCnt < 2)
BlackBorderHeight = 28;
gCameraOffset.vx = 0;
gCameraOffset.vy = 0;
gCameraOffset.vz = 0;
if (CutsceneLength-28 < CutsceneFrameCnt)
{
gSkipInGameCutscene = 0;