diff options
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index 31c4843f0..f2bf49c13 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -609,7 +609,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, /* 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 (_game_mode == GM_NORMAL && !exec_as_spectator && !Company::IsValidID(_current_company)) { + if (_game_mode == GM_NORMAL && !exec_as_spectator && !Company::IsValidID(_current_company) && !(_current_company == OWNER_DEITY && (cmd_flags & CMD_DEITY) != 0)) { return_dcpi(CMD_ERROR, false); } |