mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- Exhumed: Make 3rd person camera properly interpolated.
This commit is contained in:
parent
e66960d9fc
commit
f11501883d
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue