From 3cce3ec2ce607bef480a5583f7d6a9b02e2791c3 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 31 Oct 2022 18:06:34 +0000 Subject: [PATCH] Use Partial Addfile for G_LoadDemoExtraFiles as well Still cope compared to the MP addfile codepath, but not the n^2 time cope of before. --- src/g_game.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index cc5a1044..c6b633ce 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -7014,10 +7014,13 @@ static void G_LoadDemoExtraFiles(UINT8 **pp) } else { - P_AddWadFile(filename); + P_PartialAddWadFile(filename); } } } + + if (P_PartialAddGetStage() >= 0) + P_MultiSetupWadFiles(true); // in case any partial adds were done } static void G_SkipDemoExtraFiles(UINT8 **pp)