mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Do not hide player sprite and temporarily disable interpolation in 3rd person mode
This commit is contained in:
parent
f0441860df
commit
5a19f5cd4d
2 changed files with 6 additions and 3 deletions
|
@ -1988,7 +1988,7 @@ static inline int32_t calc_smoothratio(ClockTicks totalclk, ClockTicks ototalclk
|
|||
// {
|
||||
// return 65536;
|
||||
// }
|
||||
if (bRecord || bPlayback || nFreeze != 0)
|
||||
if (bRecord || bPlayback || nFreeze != 0 || bCamera)
|
||||
return 65536;
|
||||
int32_t rfreq = (refreshfreq != -1 ? refreshfreq : 60);
|
||||
uint64_t elapsedFrames = tabledivide64(((uint64_t) (totalclk - ototalclk).toScale16()) * rfreq, 65536*120);
|
||||
|
|
|
@ -412,9 +412,12 @@ void DrawView(int smoothRatio)
|
|||
nSector = nPlayerViewSect[nLocalPlayer];
|
||||
nAngle = q16angle_interpolate16(PlayerList[nLocalPlayer].q16oangle, PlayerList[nLocalPlayer].q16angle, smoothRatio);
|
||||
|
||||
if (!bCamera)
|
||||
{
|
||||
sprite[nPlayerSprite].cstat |= CSTAT_SPRITE_INVISIBLE;
|
||||
sprite[nDoppleSprite[nLocalPlayer]].cstat |= CSTAT_SPRITE_INVISIBLE;
|
||||
}
|
||||
}
|
||||
|
||||
nCameraa = nAngle;
|
||||
|
||||
|
|
Loading…
Reference in a new issue