command.c
changeset 1834 33612fb9c7d7
parent 1820 9b6458526480
child 1838 522076c550c0
--- a/command.c	Tue May 17 16:07:48 2005 +0000
+++ b/command.c	Tue May 17 18:22:59 2005 +0000
@@ -413,8 +413,9 @@
 	_error_message_2 = cmd >> 16;
 	_additional_cash_required = 0;
 
-	// spectator has no rights.
-	if (_current_player == OWNER_SPECTATOR) {
+	/** Spectator has no rights except for the dedicated server which
+	 * is a spectator but is the server, so can do anything */
+	if (_current_player == OWNER_SPECTATOR && !_network_dedicated) {
 		ShowErrorMessage(_error_message, _error_message_2, x, y);
 		_cmd_text = NULL;
 		return false;