From 7a80195ed7ecce31db780bf4eba4361b0680f682 Mon Sep 17 00:00:00 2001 From: fickleheart Date: Tue, 19 Feb 2019 17:33:02 -0600 Subject: [PATCH] Fix count limiter not always working right for titledemo netreplays --- src/g_game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index 22daab23..452c5505 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -6903,7 +6903,8 @@ void G_DoPlayDemo(char *defdemoname) if (titledemo) { - splitscreen = min(min(3, numslots-1), max(0, M_RandomKey(6)-1)); // Bias toward 1p and 4p views + splitscreen = M_RandomKey(6)-1; + splitscreen = min(min(3, numslots-1), max(0, splitscreen)); // Bias toward 1p and 4p views for (p = 0; p <= splitscreen; p++) G_ResetView(p+1, slots[M_RandomKey(numslots)], false);