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

View File

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