mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-01 07:11:02 +00:00
Fixup max() mess
This commit is contained in:
parent
db3d8eee50
commit
1bdd1506d9
1 changed files with 1 additions and 1 deletions
|
@ -6901,7 +6901,7 @@ void G_DoPlayDemo(char *defdemoname)
|
||||||
if (titledemo)
|
if (titledemo)
|
||||||
{
|
{
|
||||||
splitscreen = M_RandomKey(6)-1;
|
splitscreen = M_RandomKey(6)-1;
|
||||||
splitscreen = min(min(3, numslots-1), max(0, splitscreen)); // Bias toward 1p and 4p views
|
splitscreen = min(min(3, numslots-1), splitscreen); // Bias toward 1p and 4p views
|
||||||
|
|
||||||
for (p = 0; p <= splitscreen; p++)
|
for (p = 0; p <= splitscreen; p++)
|
||||||
G_ResetView(p+1, slots[M_RandomKey(numslots)], false);
|
G_ResetView(p+1, slots[M_RandomKey(numslots)], false);
|
||||||
|
|
Loading…
Reference in a new issue