summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-18 10:01:31 +0000
committerrubidium <rubidium@openttd.org>2009-07-18 10:01:31 +0000
commit861a2163f615fef311ea0ee6c7c4abeb1e2e65c0 (patch)
tree278567959796487fd7e6cb1c17aba1182778eba7 /src/station_cmd.cpp
parent8c17c6cb2bba037e0e7cbe5f97bc2e025bed9a6f (diff)
downloadopenttd-861a2163f615fef311ea0ee6c7c4abeb1e2e65c0.tar.xz
(svn r16869) -Codechange: make drawing waypoints a tiny bit more like drawing stations
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index c6e98c612..603bfea93 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3081,6 +3081,7 @@ static CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags)
{
if (flags & DC_AUTO) {
switch (GetStationType(tile)) {
+ default: break;
case STATION_RAIL: return_cmd_error(STR_ERROR_MUST_DEMOLISH_RAILROAD);
case STATION_AIRPORT: return_cmd_error(STR_ERROR_MUST_DEMOLISH_AIRPORT_FIRST);
case STATION_TRUCK: return_cmd_error(HasTileRoadType(tile, ROADTYPE_TRAM) ? STR_ERROR_MUST_DEMOLISH_CARGO_TRAM_STATION_FIRST : STR_ERROR_MUST_DEMOLISH_TRUCK_STATION_FIRST);