Fixup max() mess

This commit is contained in:
Alam Arias 2019-03-04 19:10:43 -05:00
parent e93a721ca1
commit bcebe2fcc2

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);