mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-10 10:10:52 +00:00
Cleaner code logic. Should make no real difference to exe, so not gonna upload another.
This commit is contained in:
parent
0d0eaf5f99
commit
7be7c600bf
1 changed files with 9 additions and 6 deletions
|
@ -1034,7 +1034,9 @@ void F_TitleScreenTicker(boolean run)
|
||||||
numstaff = 1;
|
numstaff = 1;
|
||||||
while (numstaff < 100 && (l = W_CheckNumForName(va("%sS%02u",mapname,numstaff+1))) != LUMPERROR)
|
while (numstaff < 100 && (l = W_CheckNumForName(va("%sS%02u",mapname,numstaff+1))) != LUMPERROR)
|
||||||
numstaff++;
|
numstaff++;
|
||||||
if (laststaff && laststaff <= numstaff && numstaff > 1) // don't do the same staff member twice in a row, even if they're on different maps
|
if (numstaff > 1)
|
||||||
|
{
|
||||||
|
if (laststaff && laststaff <= numstaff) // don't do the same staff member twice in a row, even if they're on different maps
|
||||||
{
|
{
|
||||||
numstaff = M_RandomKey(numstaff-1)+1;
|
numstaff = M_RandomKey(numstaff-1)+1;
|
||||||
if (numstaff >= laststaff)
|
if (numstaff >= laststaff)
|
||||||
|
@ -1042,6 +1044,7 @@ void F_TitleScreenTicker(boolean run)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
numstaff = M_RandomKey(numstaff)+1;
|
numstaff = M_RandomKey(numstaff)+1;
|
||||||
|
}
|
||||||
|
|
||||||
laststaff = numstaff;
|
laststaff = numstaff;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue