commit aa237b58a93904c9725c5e670b487805aa46cd0b
Author: Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
AuthorDate: Sat Oct 16 00:42:50 2021 -0400
Commit: GitHub <noreply@github.com>
CommitDate: Sat Oct 16 00:42:50 2021 -0400
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.
---
src/setup/multiplayer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index 02e50c03..998e24fd 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -176,6 +176,7 @@ static void AddWADs(execute_context_t *exec)
if (!have_wads)
{
AddCmdLineParameter(exec, "-file");
+ have_wads = 1;
}
AddCmdLineParameter(exec, "\"%s\"", wads[i]);