- Exhumed: Make 3rd person camera properly interpolated.

This commit is contained in:
Mitchell Richters 2021-01-30 11:23:38 +11:00
parent e66960d9fc
commit f11501883d
2 changed files with 3 additions and 3 deletions

View file

@ -255,7 +255,7 @@ void DrawClock()
double calc_smoothratio() double calc_smoothratio()
{ {
if (bRecord || bPlayback || nFreeze != 0 || bCamera || paused) if (bRecord || bPlayback || nFreeze != 0 || paused)
return MaxSmoothRatio; return MaxSmoothRatio;
return I_GetTimeFrac() * MaxSmoothRatio; return I_GetTimeFrac() * MaxSmoothRatio;

View file

@ -297,8 +297,8 @@ void DrawView(double smoothRatio, bool sceneonly)
else else
{ {
clipmove_old((int32_t*)&playerX, (int32_t*)&playerY, (int32_t*)&playerZ, &nSector, clipmove_old((int32_t*)&playerX, (int32_t*)&playerY, (int32_t*)&playerZ, &nSector,
-2000 * bcos(inita), -2000 * nAngle.bcos(),
-2000 * bsin(inita), -2000 * nAngle.bsin(),
4, 0, 0, CLIPMASK1); 4, 0, 0, CLIPMASK1);
pan = q16horiz(0); pan = q16horiz(0);