Fixup max() mess

This commit is contained in:
Alam Arias 2019-03-04 19:10:43 -05:00
parent db3d8eee50
commit 1bdd1506d9

View file

@ -6901,7 +6901,7 @@ void G_DoPlayDemo(char *defdemoname)
if (titledemo)
{
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++)
G_ResetView(p+1, slots[M_RandomKey(numslots)], false);