diff options
author | rubidium <rubidium@openttd.org> | 2007-08-27 21:18:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-27 21:18:04 +0000 |
commit | 5ce935c6ebf8ea88bb28909addbb0ccf937acaba (patch) | |
tree | d054ea6d02484291e1b3655d44f6dbc85a1c1f5d /src/main_gui.cpp | |
parent | 68d385b77ca4026acaec6c789ed1ef2905632395 (diff) | |
download | openttd-5ce935c6ebf8ea88bb28909addbb0ccf937acaba.tar.xz |
(svn r10991) -Codechange: add documentation, enumification and some code simplifications to the terraforming code. Patch by frosch.
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 e4e20c317..0e0498283 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, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(msg)); + DoCommandP(tile, SLOPE_N, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | 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, 8, (uint32)mode, NULL, CMD_TERRAFORM_LAND | CMD_AUTO); + DoCommandP(tile2, SLOPE_N, (uint32)mode, NULL, CMD_TERRAFORM_LAND | CMD_AUTO); } } END_TILE_LOOP(tile2, sizex, sizey, tile) } |