From 214b5eb42f8296965837a29e086fd4c6a7406c37 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 12 Mar 2006 10:15:36 +0000 Subject: (svn r3827) Remove the global variable _error_message_2, it's only used as local variable --- main_gui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 75d81867a..5b7c594c6 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1145,12 +1145,13 @@ static void CommonRaiseLowerBigLand(TileIndex tile, int mode) int sizex, sizey; byte h; - _error_message_2 = mode ? STR_0808_CAN_T_RAISE_LAND_HERE : STR_0809_CAN_T_LOWER_LAND_HERE; - _generating_world = true; // used to create green terraformed land if (_terraform_size == 1) { - DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(_error_message_2)); + StringID msg = + mode ? STR_0808_CAN_T_RAISE_LAND_HERE : STR_0809_CAN_T_LOWER_LAND_HERE; + + DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(msg)); } else { SndPlayTileFx(SND_1F_SPLAT, tile); -- cgit v1.2.3-70-g09d2