summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 17:58:53 +0000
committertruelight <truelight@openttd.org>2004-12-13 17:58:53 +0000
commit82f89899ea183b66581936d1621d4063a71a608e (patch)
tree40c2e0e0f645eeb8329ef54bffbf9882a49cc521 /economy.c
parent83bdec9b91f8bf54772db6495d2b3de18bbd36e5 (diff)
downloadopenttd-82f89899ea183b66581936d1621d4063a71a608e.tar.xz
(svn r1061) -Fix: [Network] Compiling without ENABLE_NETWORK now works again correctly
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/economy.c b/economy.c
index 804763d1d..a42d6fd27 100644
--- a/economy.c
+++ b/economy.c
@@ -398,6 +398,7 @@ static void PlayersCheckBankrupt(Player *p)
} else {
// If we are the server, make sure it is clear that his player is no
// longer with us!
+#ifdef ENABLE_NETWORK
if (IS_HUMAN_PLAYER(owner) && _network_server) {
NetworkClientInfo *ci;
ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
@@ -405,6 +406,7 @@ static void PlayersCheckBankrupt(Player *p)
// Send the new info to all the clients
NetworkUpdateClientInfo(_network_own_client_index);
}
+#endif /* ENABLE_NETWORK */
// Make sure the player no longer controls the company
if (IS_HUMAN_PLAYER(owner) && owner == _local_player) {
// Switch the player to spectator..