(svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress

This commit is contained in:
rubidium
2011-08-21 12:46:46 +00:00
parent 236075e944
commit 37415b9cf7
9 changed files with 17 additions and 17 deletions

View File

@@ -500,10 +500,10 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
/* Cost estimation is generally only done when the
* local user presses shift while doing somthing.
* However, in case of incoming network commands,
* map generation of the pause button we do want
* map generation or the pause button we do want
* to execute. */
bool estimate_only = _shift_pressed && IsLocalCompany() &&
!IsGeneratingWorld() &&
!_generating_world &&
!(cmd & CMD_NETWORK_COMMAND) &&
(cmd & CMD_ID_MASK) != CMD_PAUSE;