diff options
author | rubidium <rubidium@openttd.org> | 2007-06-13 17:34:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-13 17:34:05 +0000 |
commit | 8ed345d5fbd14f75a22807eece0836fc38f6e820 (patch) | |
tree | 608cac548a8b8ace91dd62d682965f7d498a36fd /src/main_gui.cpp | |
parent | 407519f8bc6ba36a4d547e447c7af7106a70efcf (diff) | |
download | openttd-8ed345d5fbd14f75a22807eece0836fc38f6e820.tar.xz |
(svn r10145) -Fix: make compiling with networking disabled (again) possible.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 76a778fc0..35f51ec3c 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -61,6 +61,7 @@ extern bool GenerateTowns(); void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) { +#ifdef ENABLE_NETWORK if (!success) return; char msg[20]; @@ -72,6 +73,7 @@ void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) } else { NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, NETWORK_SERVER_INDEX); } +#endif /* ENABLE_NETWORK */ } void HandleOnEditText(const char *str) |