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 | 54b7fb02034f703e539295edff80935144ea735a (patch) | |
tree | 9cbf8e97114b80319c5284dc86f0db95d2174b1a /players.c | |
parent | 166c1badc91d8ab0211f16e7c90b8c011e2b4a74 (diff) | |
download | openttd-54b7fb02034f703e539295edff80935144ea735a.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 'players.c')
-rw-r--r-- | players.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -674,7 +674,7 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (p != NULL) { if (_local_player == OWNER_SPECTATOR) { /* Check if we do not want to be a spectator in network */ - if (!_networking || _network_server || _network_playas != OWNER_SPECTATOR) { + if (!_networking || (_network_server && !_network_dedicated) || _network_playas != OWNER_SPECTATOR) { _local_player = p->index; MarkWholeScreenDirty(); } |