mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-04 15:31:05 +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;
|
||||
while (numstaff < 100 && (l = W_CheckNumForName(va("%sS%02u",mapname,numstaff+1))) != LUMPERROR)
|
||||
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;
|
||||
if (numstaff >= laststaff)
|
||||
|
@ -1042,6 +1044,7 @@ void F_TitleScreenTicker(boolean run)
|
|||
}
|
||||
else
|
||||
numstaff = M_RandomKey(numstaff)+1;
|
||||
}
|
||||
|
||||
laststaff = numstaff;
|
||||
|
||||
|
|
Loading…
Reference in a new issue