diff options
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index 31d130b23..8577761be 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -637,10 +637,9 @@ static void TileLoop_Clear(TileIndex tile) { TileLoopClearHelper(tile); - if (_opt.landscape == LT_DESERT) { - TileLoopClearDesert(tile); - } else if (_opt.landscape == LT_HILLY) { - TileLoopClearAlps(tile); + switch (_opt.landscape) { + case LT_DESERT: TileLoopClearDesert(tile); break; + case LT_HILLY: TileLoopClearAlps(tile); break; } switch (GetClearGround(tile)) { |