mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Blood: Ensure new QAV timer doesn't process while game is paused.
This commit is contained in:
parent
1ee6fd76c4
commit
ebdc9c31f2
1 changed files with 24 additions and 16 deletions
|
@ -267,6 +267,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);
|
||||
|
@ -290,6 +293,11 @@ void qavProcessTimer(PLAYER* const pPlayer, QAV* const pQAV, int* duration, doub
|
|||
*smoothratio = I_GetTimeFrac(pQAV->ticrate) * MaxSmoothRatio;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
*smoothratio = MaxSmoothRatio;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// This is to eliminate a huge design issue in NBlood that was apparently copied verbatim from the DOS-Version.
|
||||
|
|
Loading…
Reference in a new issue