(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.
authordarkvater
Fri, 14 Jan 2005 22:03:09 +0000
changeset 1014 c669eeb097c6
parent 1013 8080f9db9057
child 1015 bc0d6949d458
(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.
main_gui.c
--- a/main_gui.c	Fri Jan 14 21:59:31 2005 +0000
+++ b/main_gui.c	Fri Jan 14 22:03:09 2005 +0000
@@ -1138,7 +1138,7 @@
 //	tile = TILE_FROM_XY(TileX(tile) * 16 + _tile_fract_coords.x + 8, TileY(tile) * 16 + _tile_fract_coords.y + 8);
 
 	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 {
 		SndPlayTileFx(SND_1F_SPLAT, tile);