Changeset - r5414:c7d0ab5f2027
[Not reviewed]
master
0 1 0
rubidium - 18 years ago 2006-12-29 16:40:22
rubidium@openttd.org
(svn r7617) -Fix (7609): GetTrackBits only works (as intended) for plain rail tiles, so get the trackbits if it is certain it is a plain rail tile. Noticed by Tron.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -967,7 +967,6 @@ static int32 ClearTile_Track(TileIndex t
 
{
 
	int32 cost;
 
	int32 ret;
 
	TrackBits tracks = GetTrackBits(tile);
 

	
 
	if (flags & DC_AUTO) {
 
		if (!IsTileOwner(tile, _current_player))
 
@@ -985,6 +984,7 @@ static int32 ClearTile_Track(TileIndex t
 
	switch (GetRailTileType(tile)) {
 
		case RAIL_TILE_SIGNALS:
 
		case RAIL_TILE_NORMAL: {
 
			TrackBits tracks = GetTrackBits(tile);
 
			uint i;
 

	
 
			for_each_bit (i, tracks) {
0 comments (0 inline, 0 general)