diff options
author | truelight <truelight@openttd.org> | 2004-12-19 10:24:45 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-19 10:24:45 +0000 |
commit | 4d94803d3263310b675ac762676cb24ef50cd2e0 (patch) | |
tree | be56000562eab42ed87d2d6c4aec8dd666e503e1 /players.c | |
parent | 0e19f74c16e9d663b6dd61f96828857c0e6a29da (diff) | |
download | openttd-4d94803d3263310b675ac762676cb24ef50cd2e0.tar.xz |
(svn r1169) -Fix: [Network] [ 1087591 ] When you want to be a spectator, you now
stay a spectator even if someone else joins.
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -653,8 +653,11 @@ int32 CmdPlayerCtrl(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (p != NULL) { if (_local_player == OWNER_SPECTATOR) { - _local_player = p->index; - MarkWholeScreenDirty(); + /* Check if we do not want to be a spectator in network */ + if (!_networking || _network_server || _network_playas != OWNER_SPECTATOR) { + _local_player = p->index; + MarkWholeScreenDirty(); + } } #ifdef ENABLE_NETWORK if (_network_server) { |