mirror of https://github.com/OpenTTD/OpenTTD
(svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the scenario editor
parent
be04b7e29c
commit
78a25e84e9
|
@ -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!
|
/* 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
|
* 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. */
|
* 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);
|
if (my_cmd) ShowErrorMessage(_error_message, error_part1, x, y);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue