@@ -363,13 +363,13 @@ static CommandCost CheckRoadSlope(Slope
if (tileh != SLOPE_FLAT) *pieces |= _valid_tileh_slopes_road[0][tileh];
return CommandCost(); // no extra cost
}
/* foundation is used. Whole tile is leveled up */
if ((~_valid_tileh_slopes_road[1][tileh] & road_bits) == ROAD_NONE) {
return CommandCost(existing != ROAD_NONE ? 0 : _price.terraform);
return CommandCost(existing != ROAD_NONE ? (Money)0 : _price.terraform);
/* Force straight roads. */
*pieces |= MirrorRoadBits(*pieces);
/* partly leveled up tile, only if there's no road on that tile */