1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-23 12:14:11 +01:00

(svn r24194) -Change: Rename the 'signal_side' setting to 'train_signal_side', and add a third option while doing so.

This commit is contained in:
frosch
2012-05-01 15:53:51 +00:00
parent 599f89e641
commit e1fda49027
60 changed files with 21 additions and 63 deletions

View File

@@ -1805,7 +1805,12 @@ static uint GetSaveSlopeZ(uint x, uint y, Track track)
static void DrawSingleSignal(TileIndex tile, Track track, byte condition, uint image, uint pos)
{
bool side = (_settings_game.vehicle.road_side != 0) && _settings_game.construction.signal_side;
bool side;
switch (_settings_game.construction.train_signal_side) {
case 0: side = false; break; // left
case 2: side = true; break; // right
default: side = _settings_game.vehicle.road_side != 0; break; // driving side
}
static const Point SignalPositions[2][12] = {
{ // Signals on the left side
/* LEFT LEFT RIGHT RIGHT UPPER UPPER */