mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +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,6 +1500,8 @@ void APowerTimeFreezer::InitEffect()
|
|||
}
|
||||
else
|
||||
{
|
||||
// Compensate for skipped tic, but beware of overflow.
|
||||
if(EffectTics < INT_MAX)
|
||||
EffectTics++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue