summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-30 17:38:42 +0000
committerrubidium <rubidium@openttd.org>2007-09-30 17:38:42 +0000
commitff14665f6ebde59e8ef17d8f0e06e2d3e5aefd65 (patch)
tree78422746fe8ad53b0a58d7e0952ad6b100782715 /src/network
parentc952f3d5eff35b04df91970e61ef1a50bac769ac (diff)
downloadopenttd-ff14665f6ebde59e8ef17d8f0e06e2d3e5aefd65.tar.xz
(svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic).
-Feature: possibility to disable exclusive rights and giving money. Both by skidd13.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index ef22ba1ad..f81799755 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1264,8 +1264,8 @@ static Window *PopupClientList(Window *w, int client_no, int x, int y)
_clientlist_proc[i++] = &ClientList_SpeakToAll;
if (_network_own_client_index != ci->client_index) {
- /* We are no spectator and the player we want to give money to is no spectator */
- if (IsValidPlayer(_network_playas) && IsValidPlayer(ci->client_playas)) {
+ /* We are no spectator and the player we want to give money to is no spectator and money gifts are allowed */
+ if (IsValidPlayer(_network_playas) && IsValidPlayer(ci->client_playas) && _patches.give_money) {
GetString(_clientlist_action[i], STR_NETWORK_CLIENTLIST_GIVE_MONEY, lastof(_clientlist_action[i]));
_clientlist_proc[i++] = &ClientList_GiveMoney;
}