mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Fix item respawn time underflow
This commit is contained in:
parent
a50d281658
commit
4570757c4e
1 changed files with 2 additions and 2 deletions
|
|
@ -9945,7 +9945,7 @@ mobjtype_t P_GetMobjtype(UINT16 mthingtype)
|
||||||
void P_RespawnSpecials(void)
|
void P_RespawnSpecials(void)
|
||||||
{
|
{
|
||||||
UINT8 p, pcount = 0;
|
UINT8 p, pcount = 0;
|
||||||
tic_t time = 30*TICRATE; // Respawn things in empty dedicated servers
|
INT32 time = 30*TICRATE; // Respawn things in empty dedicated servers
|
||||||
mapthing_t *mthing = NULL;
|
mapthing_t *mthing = NULL;
|
||||||
|
|
||||||
if (!(gametyperules & GTR_CIRCUIT) && numgotboxes >= (4*nummapboxes/5)) // Battle Mode respawns all boxes in a different way
|
if (!(gametyperules & GTR_CIRCUIT) && numgotboxes >= (4*nummapboxes/5)) // Battle Mode respawns all boxes in a different way
|
||||||
|
|
@ -9993,7 +9993,7 @@ void P_RespawnSpecials(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// the first item in the queue is the first to respawn
|
// the first item in the queue is the first to respawn
|
||||||
if (leveltime - itemrespawntime[iquetail] < time)
|
if (leveltime - itemrespawntime[iquetail] < (tic_t)time)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mthing = itemrespawnque[iquetail];
|
mthing = itemrespawnque[iquetail];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue