mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r14911) -Fix (r14909): -D did not work
This commit is contained in:
parent
4df86694a7
commit
2ef54545c7
@ -436,10 +436,14 @@ int ttd_main(int argc, char *argv[])
|
||||
case 'b': free(blitter); blitter = strdup(mgo.opt); break;
|
||||
#if defined(ENABLE_NETWORK)
|
||||
case 'D':
|
||||
strcpy(musicdriver, "null");
|
||||
strcpy(sounddriver, "null");
|
||||
strcpy(videodriver, "dedicated");
|
||||
strcpy(blitter, "null");
|
||||
free(musicdriver);
|
||||
free(sounddriver);
|
||||
free(videodriver);
|
||||
free(blitter);
|
||||
musicdriver = strdup("null");
|
||||
sounddriver = strdup("null");
|
||||
videodriver = strdup("dedicated");
|
||||
blitter = strdup("null");
|
||||
dedicated = true;
|
||||
if (mgo.opt != NULL) {
|
||||
/* Use the existing method for parsing (openttd -n).
|
||||
|
Loading…
Reference in New Issue
Block a user