summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-26 17:37:50 +0000
committerfrosch <frosch@openttd.org>2010-07-26 17:37:50 +0000
commit3767ae51965cbf9407ab44c29aeaaeac939098ab (patch)
tree4f0a80994322fe2873e047e04823da5cbb8bed66 /src/rail_cmd.cpp
parent4203e641f8a507c017d10bf40f2c3882ce596da5 (diff)
downloadopenttd-3767ae51965cbf9407ab44c29aeaaeac939098ab.tar.xz
(svn r20224) -Fix [FS#3976]: Depot did not become unsnowy, when snowline rises.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp4
1 files changed, 1 insertions, 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);