diff options
author | tron <tron@openttd.org> | 2006-03-12 10:15:36 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 10:15:36 +0000 |
commit | 214b5eb42f8296965837a29e086fd4c6a7406c37 (patch) | |
tree | f6d52699ba6457b1360804a806cb2cd6e383a699 /main_gui.c | |
parent | b9ade450083a4f6db9064f0e183285930b7ab7c3 (diff) | |
download | openttd-214b5eb42f8296965837a29e086fd4c6a7406c37.tar.xz |
(svn r3827) Remove the global variable _error_message_2, it's only used as local variable
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |