Author: soliton
Date: Fri May 8 16:48:27 2009
New Revision: 35489
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35489&view=rev
Log:
quote the config filename so it gets parsed right
probably fixes bug #13499: "Host Networked Game" launches wesnothd with a
random port number
Modified:
branches/1.6/src/game.cpp
Modified: branches/1.6/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/game.cpp?rev=35489&r1=35488&r2=35489&view=diff
==============================================================================
--- branches/1.6/src/game.cpp (original)
+++ branches/1.6/src/game.cpp Fri May 8 16:48:27 2009
@@ -1285,7 +1285,7 @@
std::string command = "\"" + *iname +"\" -c " + config + " -d
-t 2 -T 5 ";
#else
// start wesnoth as background job
- std::string command = "cmd /C start \"wesnoth server\" /B \"" +
*iname + "\" -c " + config + " -t 2 -T 5 ";
+ std::string command = "cmd /C start \"wesnoth server\" /B \"" +
*iname + "\" -c \"" + config + "\" -t 2 -T 5";
#endif
LOG_GENERAL << "Starting wesnothd: "<< command << "\n";
if (std::system(command.c_str()) == 0)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits