diff options
author | rubidium <rubidium@openttd.org> | 2007-09-04 11:58:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-04 11:58:27 +0000 |
commit | 9706c32ed69f560199ea6232fb5078876912e1e9 (patch) | |
tree | eb509837e511a15770453fc1943e2b7c7180be64 /src/main_gui.cpp | |
parent | b1effc466eac33997567e2f2e68812afb1c0a7f6 (diff) | |
download | openttd-9706c32ed69f560199ea6232fb5078876912e1e9.tar.xz |
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index cdd79c998..447aef59b 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -1086,7 +1086,7 @@ static void CommonRaiseLowerBigLand(TileIndex tile, int mode) StringID msg = mode ? STR_0808_CAN_T_RAISE_LAND_HERE : STR_0809_CAN_T_LOWER_LAND_HERE; - DoCommandP(tile, SLOPE_N, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(msg)); + DoCommandP(tile, SLOPE_N, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_MSG(msg)); } else { SndPlayTileFx(SND_1F_SPLAT, tile); @@ -1113,7 +1113,7 @@ static void CommonRaiseLowerBigLand(TileIndex tile, int mode) BEGIN_TILE_LOOP(tile2, sizex, sizey, tile) { if (TileHeight(tile2) == h) { - DoCommandP(tile2, SLOPE_N, (uint32)mode, NULL, CMD_TERRAFORM_LAND | CMD_AUTO); + DoCommandP(tile2, SLOPE_N, (uint32)mode, NULL, CMD_TERRAFORM_LAND); } } END_TILE_LOOP(tile2, sizex, sizey, tile) } |