From 3767ae51965cbf9407ab44c29aeaaeac939098ab Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 26 Jul 2010 17:37:50 +0000 Subject: (svn r20224) -Fix [FS#3976]: Depot did not become unsnowy, when snowline rises. --- src/rail_cmd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index e866046a5..c2a7c74c8 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2407,11 +2407,9 @@ static void TileLoop_Track(TileIndex tile) break; } - if (!IsPlainRail(tile)) return; - new_ground = RAIL_GROUND_GRASS; - if (old_ground != RAIL_GROUND_BARREN) { // wait until bottom is green + if (IsPlainRail(tile) && old_ground != RAIL_GROUND_BARREN) { // wait until bottom is green /* determine direction of fence */ TrackBits rail = GetTrackBits(tile); -- cgit v1.2.3-54-g00ecf