Changeset - r14939:512b4e504c88
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2010-04-03 20:25:23
peter1138@openttd.org
(svn r19556) -Fix (r19434): Incorrect speed limit reported for rail depots with original acceleration model.
1 file changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -2620,28 +2620,30 @@ static void GetTileDesc_Track(TileIndex 
 
				primary_signal = GetSignalType(tile, TRACK_UPPER);
 
				secondary_signal = HasSignalOnTrack(tile, TRACK_LOWER) ? GetSignalType(tile, TRACK_LOWER) : primary_signal;
 
			} else {
 
				secondary_signal = primary_signal = GetSignalType(tile, TRACK_LOWER);
 
			}
 

	
 
			td->str = signal_type[secondary_signal][primary_signal];
 
			break;
 
		}
 

	
 
		case RAIL_TILE_DEPOT:
 
			td->str = STR_LAI_RAIL_DESCRIPTION_TRAIN_DEPOT;
 
			if (td->rail_speed > 0) {
 
				td->rail_speed = min(td->rail_speed, 61);
 
			} else {
 
				td->rail_speed = 61;
 
			if (_settings_game.vehicle.train_acceleration_model != AM_ORIGINAL) {
 
				if (td->rail_speed > 0) {
 
					td->rail_speed = min(td->rail_speed, 61);
 
				} else {
 
					td->rail_speed = 61;
 
				}
 
			}
 
			break;
 

	
 
		default:
 
			NOT_REACHED();
 
	}
 
}
 

	
 
static void ChangeTileOwner_Track(TileIndex tile, Owner old_owner, Owner new_owner)
 
{
 
	if (!IsTileOwner(tile, old_owner)) return;
 

	
0 comments (0 inline, 0 general)