- Blood: Ensure new QAV timer doesn't process while game is paused.

This commit is contained in:
Mitchell Richters 2021-08-23 11:05:08 +10:00
parent 1ee6fd76c4
commit ebdc9c31f2

View file

@ -268,6 +268,9 @@ void qavProcessTicker(QAV* const pQAV, int* duration, int* lastTick)
void qavProcessTimer(PLAYER* const pPlayer, QAV* const pQAV, int* duration, double* smoothratio, bool const fixedduration)
{
// Process if not paused.
if (!paused)
{
// Process clock based on QAV's ticrate and last tick value.
qavProcessTicker(pQAV, &pPlayer->qavTimer, &pPlayer->qavLastTick);
@ -289,6 +292,11 @@ void qavProcessTimer(PLAYER* const pPlayer, QAV* const pQAV, int* duration, doub
*duration = pQAV->duration - pPlayer->qavTimer;
*smoothratio = I_GetTimeFrac(pQAV->ticrate) * MaxSmoothRatio;
}
}
else
{
*smoothratio = MaxSmoothRatio;
}
}