equal
deleted
inserted
replaced
1084 |
1084 |
1085 if (_terraform_size == 1) { |
1085 if (_terraform_size == 1) { |
1086 StringID msg = |
1086 StringID msg = |
1087 mode ? STR_0808_CAN_T_RAISE_LAND_HERE : STR_0809_CAN_T_LOWER_LAND_HERE; |
1087 mode ? STR_0808_CAN_T_RAISE_LAND_HERE : STR_0809_CAN_T_LOWER_LAND_HERE; |
1088 |
1088 |
1089 DoCommandP(tile, SLOPE_N, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(msg)); |
1089 DoCommandP(tile, SLOPE_N, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_MSG(msg)); |
1090 } else { |
1090 } else { |
1091 SndPlayTileFx(SND_1F_SPLAT, tile); |
1091 SndPlayTileFx(SND_1F_SPLAT, tile); |
1092 |
1092 |
1093 assert(_terraform_size != 0); |
1093 assert(_terraform_size != 0); |
1094 /* check out for map overflows */ |
1094 /* check out for map overflows */ |
1111 } END_TILE_LOOP(tile2, sizex, sizey, tile) |
1111 } END_TILE_LOOP(tile2, sizex, sizey, tile) |
1112 } |
1112 } |
1113 |
1113 |
1114 BEGIN_TILE_LOOP(tile2, sizex, sizey, tile) { |
1114 BEGIN_TILE_LOOP(tile2, sizex, sizey, tile) { |
1115 if (TileHeight(tile2) == h) { |
1115 if (TileHeight(tile2) == h) { |
1116 DoCommandP(tile2, SLOPE_N, (uint32)mode, NULL, CMD_TERRAFORM_LAND | CMD_AUTO); |
1116 DoCommandP(tile2, SLOPE_N, (uint32)mode, NULL, CMD_TERRAFORM_LAND); |
1117 } |
1117 } |
1118 } END_TILE_LOOP(tile2, sizex, sizey, tile) |
1118 } END_TILE_LOOP(tile2, sizex, sizey, tile) |
1119 } |
1119 } |
1120 |
1120 |
1121 _generating_world = false; |
1121 _generating_world = false; |