mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-09 09:10:51 +00:00
- fixed division by zero with unvalidated ticdup values.
This commit is contained in:
parent
eb56eb380e
commit
86a5545fa8
1 changed files with 2 additions and 2 deletions
|
@ -1461,7 +1461,7 @@ bool DoArbitrate (void *userdata)
|
||||||
{
|
{
|
||||||
data->gotsetup[0] = 0x80;
|
data->gotsetup[0] = 0x80;
|
||||||
|
|
||||||
ticdup = doomcom.ticdup = netbuffer[1];
|
ticdup = doomcom.ticdup = clamp<int>(netbuffer[1], 1, MAXTICDUP);
|
||||||
NetMode = netbuffer[2];
|
NetMode = netbuffer[2];
|
||||||
|
|
||||||
stream = &netbuffer[3];
|
stream = &netbuffer[3];
|
||||||
|
@ -1884,7 +1884,7 @@ void TryRunTics (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ticdup == 1)
|
if (ticdup <= 1)
|
||||||
{
|
{
|
||||||
availabletics = lowtic - gametic;
|
availabletics = lowtic - gametic;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue