mirror of https://github.com/OpenTTD/OpenTTD
(svn r1514) -Fix: [1092474] little red box in scenario editor (Celestar). Error box is also shown in scenario editor for terraforming, thus solving the eternally-pulsating-tile problem.
parent
83b00ad861
commit
976ed5e396
|
@ -1138,7 +1138,7 @@ static void CommonRaiseLowerBigLand(uint tile, int mode)
|
||||||
// tile = TILE_FROM_XY(TileX(tile) * 16 + _tile_fract_coords.x + 8, TileY(tile) * 16 + _tile_fract_coords.y + 8);
|
// tile = TILE_FROM_XY(TileX(tile) * 16 + _tile_fract_coords.x + 8, TileY(tile) * 16 + _tile_fract_coords.y + 8);
|
||||||
|
|
||||||
if (_terraform_size == 1) {
|
if (_terraform_size == 1) {
|
||||||
DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO);
|
DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(_error_message_2));
|
||||||
} else {
|
} else {
|
||||||
SndPlayTileFx(SND_1F_SPLAT, tile);
|
SndPlayTileFx(SND_1F_SPLAT, tile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue