From 59c9fee33fbd56c16140e668463a9a7f88fd338d Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 17 May 2005 18:22:59 +0000 Subject: (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 ') now works and not only when a client is connected. --- players.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'players.c') diff --git a/players.c b/players.c index 01770c0b5..fe0721846 100644 --- a/players.c +++ b/players.c @@ -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(); } -- cgit v1.2.3-54-g00ecf