mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Slight tweaks to item spawn location
This commit is contained in:
parent
91ed67bece
commit
a011278dd4
1 changed files with 5 additions and 4 deletions
|
|
@ -449,19 +449,20 @@ void K_RunPaperItemSpawners(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = starti; i < min(item, pcount); i++)
|
for (i = starti; i < min(item + starti, pcount); i++)
|
||||||
{
|
{
|
||||||
UINT8 r = P_RandomRange(0, item-1);
|
UINT8 r = P_RandomKey(item);
|
||||||
UINT8 recursion = 0;
|
UINT8 recursion = 0;
|
||||||
mobj_t *drop = NULL;
|
mobj_t *drop = NULL;
|
||||||
SINT8 flip = 1;
|
SINT8 flip = 1;
|
||||||
|
|
||||||
while (spotUsed[r] == true)
|
while (spotUsed[r] == true)
|
||||||
{
|
{
|
||||||
r = P_RandomRange(0, item-1);
|
r = P_RandomKey(item);
|
||||||
|
|
||||||
if ((recursion++) > 32)
|
if ((recursion++) > MAXITEM)
|
||||||
{
|
{
|
||||||
|
// roll with it anyway I guess
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue