summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp2
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)