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 | 197a8fd5f3faebdee4845bcc298145f7623dc7e7 (patch) | |
tree | 608cac548a8b8ace91dd62d682965f7d498a36fd /src/main_gui.cpp | |
parent | 8a1c9187a1639bea83c371c045d7a96473f0a891 (diff) | |
download | openttd-197a8fd5f3faebdee4845bcc298145f7623dc7e7.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) |