From 422d9e3b778dae7502e74f60cd95b1f9235b49fc Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 26 Jul 2010 17:37:50 +0000 Subject: [PATCH] (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 e866046a52..c2a7c74c8f 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);