shithub: choc

Download patch

ref: aa237b58a93904c9725c5e670b487805aa46cd0b
parent: 64c5bcb552b6d760108c4f71692d291d2bf62708
author: Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
date: Fri Oct 15 20:42:50 EDT 2021

Fix Setup's "Add WADs" feature

This bug prevented players from adding multiple files. Because this variable was never set to 1, Setup would pass the parameter `-file btsx_e1a.wad -file btsx_e1b.wad` to the engine, thus the only added wad would be `btsx_e1a.wad` because the engine only parses the first `-file` argument.

--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -176,6 +176,7 @@
             if (!have_wads)
             {
                 AddCmdLineParameter(exec, "-file");
+                have_wads = 1;
             }
 
             AddCmdLineParameter(exec, "\"%s\"", wads[i]);