Mercurial > hg > openttd
changeset 12094:cbc3f4302215 draft
(svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the scenario editor
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 02 Jun 2009 12:57:47 +0000 |
parents | 1288972d5615 |
children | 330c67eebb69 |
files | src/command.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.cpp +++ b/src/command.cpp @@ -526,7 +526,7 @@ /* 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; }