summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
committerrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
commit97d6e0e6c0bdada386ac68ffb95719721f1c54ce (patch)
tree05e3aa4702dd2e570adeaebdf8acd63559e5165f /src/openttd.cpp
parent2ba5bf8947f8c879ed1f41cdd218c6271f626151 (diff)
downloadopenttd-97d6e0e6c0bdada386ac68ffb95719721f1c54ce.tar.xz
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ab8e81c2a..7890c3cf6 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -696,12 +696,14 @@ static void MakeNewGameDone()
SettingsDisableElrail(_patches.disable_elrails);
SetDefaultRailGui();
+#ifdef ENABLE_NETWORK
/* We are the server, we start a new player (not dedicated),
* so set the default password *if* needed. */
if (_network_server && !StrEmpty(_network_default_company_pass)) {
char *password = _network_default_company_pass;
NetworkChangeCompanyPassword(1, &password);
}
+#endif /* ENABLE_NETWORK */
MarkWholeScreenDirty();
}