mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- Fixed: Possible timer overflow in PowerTimeFreezer.
This commit is contained in:
parent
a34a7ace18
commit
5d6e8a7338
1 changed files with 3 additions and 1 deletions
|
@ -1500,7 +1500,9 @@ void APowerTimeFreezer::InitEffect()
|
|||
}
|
||||
else
|
||||
{
|
||||
EffectTics++;
|
||||
// Compensate for skipped tic, but beware of overflow.
|
||||
if(EffectTics < INT_MAX)
|
||||
EffectTics++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue