# HG changeset patch # User frosch # Date 2010-07-26 17:37:50 # Node ID 222c13a2631005cfc06d82bc198f6f26206097fa # Parent 7db2c5732f291161379f67950e5c329ec47e350c (svn r20224) -Fix [FS#3976]: Depot did not become unsnowy, when snowline rises. diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2407,11 +2407,9 @@ static void TileLoop_Track(TileIndex til 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);