Changeset - r15554:222c13a26310
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-26 17:37:50
frosch@openttd.org
(svn r20224) -Fix [FS#3976]: Depot did not become unsnowy, when snowline rises.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -2398,29 +2398,27 @@ static void TileLoop_Track(TileIndex til
 
			}
 
			break;
 
			}
 

	
 
		case LT_TROPIC:
 
			if (GetTropicZone(tile) == TROPICZONE_DESERT) {
 
				new_ground = RAIL_GROUND_ICE_DESERT;
 
				goto set_ground;
 
			}
 
			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);
 

	
 
		switch (rail) {
 
			case TRACK_BIT_UPPER: new_ground = RAIL_GROUND_FENCE_HORIZ1; break;
 
			case TRACK_BIT_LOWER: new_ground = RAIL_GROUND_FENCE_HORIZ2; break;
 
			case TRACK_BIT_LEFT:  new_ground = RAIL_GROUND_FENCE_VERT1;  break;
 
			case TRACK_BIT_RIGHT: new_ground = RAIL_GROUND_FENCE_VERT2;  break;
 

	
 
			default: {
 
				Owner owner = GetTileOwner(tile);
 

	
0 comments (0 inline, 0 general)