From 78a25e84e9d7935404f13c041e8a93c4e9b6ff47 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 2 Jun 2009 12:57:47 +0000 Subject: [PATCH] (svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the scenario editor --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index 19805d7f89..f6f3b2e2e2 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -526,7 +526,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac /* If the company isn't valid it may only do server command or start a new company! * The server will ditch any server commands a client sends to it, so effectively * this guards the server from executing functions for an invalid company. */ - if ((cmd_flags & (CMD_SPECTATOR | CMD_SERVER)) == 0 && !Company::IsValidID(_current_company)) { + if (_game_mode == GM_NORMAL && (cmd_flags & (CMD_SPECTATOR | CMD_SERVER)) == 0 && !Company::IsValidID(_current_company)) { if (my_cmd) ShowErrorMessage(_error_message, error_part1, x, y); return false; }