diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-17 18:22:59 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-17 18:22:59 +0000 |
commit | 59c9fee33fbd56c16140e668463a9a7f88fd338d (patch) | |
tree | 9cbf8e97114b80319c5284dc86f0db95d2174b1a /network_server.c | |
parent | 5fc05c681a398a65430d2d191f0fcf3dee9383ea (diff) | |
download | openttd-59c9fee33fbd56c16140e668463a9a7f88fd338d.tar.xz |
(svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
Diffstat (limited to 'network_server.c')
-rw-r--r-- | network_server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/network_server.c b/network_server.c index 89e4c4c00..9a6ef0368 100644 --- a/network_server.c +++ b/network_server.c @@ -1036,12 +1036,11 @@ void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, NetworkTextMessage(action, GetDrawStringPlayerColor(ci->client_playas-1), false, ci->client_name, "%s", msg); if (from_index == NETWORK_SERVER_INDEX) show_local = false; - ci_to = ci; + ci_to = ci_own; } /* There is no such player */ - if (ci_to == NULL) - break; + if (ci_to == NULL) break; // Display the message locally (so you know you have sent it) if (ci != NULL && show_local) { |