(svn r23611) -Add: run the begin of the script already while generating, and don't sleep on DoCommand while doing so

This commit is contained in:
truebrain
2011-12-19 20:56:50 +00:00
parent cbe43abe5d
commit 83f2785f54
7 changed files with 30 additions and 4 deletions

View File

@@ -658,7 +658,7 @@ CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd,
* If we are in network, and the command is not from the network
* send it to the command-queue and abort execution
*/
if (_networking && !(cmd & CMD_NETWORK_COMMAND)) {
if (_networking && !_generating_world && !(cmd & CMD_NETWORK_COMMAND)) {
NetworkSendCommand(tile, p1, p2, cmd & ~CMD_FLAGS_MASK, callback, text, _current_company);
cur_company.Restore();