Changeset - r17864:e1b49fc0b459
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-07-17 16:09:38
frosch@openttd.org
(svn r22670) -Change: Do not spawn explosion effects when bulldozing in paused mode. They block the view.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/landscape.cpp
Show inline comments
 
@@ -690,9 +690,10 @@ CommandCost CmdClearArea(TileIndex tile,
 
			}
 
			DoCommand(t, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 

	
 
			/* draw explosion animation... */
 
			/* draw explosion animation...
 
			 * Disable explosions when game is paused. Looks silly and blocks the view. */
 
			TileIndex off = t - ta.tile;
 
			if ((TileX(off) == 0 || TileX(off) == ta.w - 1U) && (TileY(off) == 0 || TileY(off) == ta.h - 1U)) {
 
			if ((TileX(off) == 0 || TileX(off) == ta.w - 1U) && (TileY(off) == 0 || TileY(off) == ta.h - 1U) && _pause_mode == PM_UNPAUSED) {
 
				/* big explosion in each corner, or small explosion for single tiles */
 
				CreateEffectVehicleAbove(TileX(t) * TILE_SIZE + TILE_SIZE / 2, TileY(t) * TILE_SIZE + TILE_SIZE / 2, 2,
 
					ta.w == 1 && ta.h == 1 ? EV_EXPLOSION_SMALL : EV_EXPLOSION_LARGE
0 comments (0 inline, 0 general)