foxygit / doom Log in
commit d331243c9c83ffa1815aa71dbe2a8fe79d03ca67
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Oct 24 20:00:38 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue Oct 24 20:00:38 2006 +0000

    Escape WAD filenames passed to Doom with " quotes, to allow WAD
    filenames with spaces.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 732
---
 setup/multiplayer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup/multiplayer.c b/setup/multiplayer.c
index f22b07c2..22788302 100644
--- a/setup/multiplayer.c
+++ b/setup/multiplayer.c
@@ -92,7 +92,7 @@ static void AddWADs(execute_context_t *exec)
                 AddCmdLineParameter(exec, "-file");
             }

-            AddCmdLineParameter(exec, wads[i]);
+            AddCmdLineParameter(exec, "\"%s\"", wads[i]);
         }
     }
 }