mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r14432) -Fix: tile description of tiles with only one signal that is not the normal signal showing "normal signal and <signal type on tile>".
This commit is contained in:
parent
d19d6f21a0
commit
bdd756b58c
@ -2399,7 +2399,16 @@ static void GetTileDesc_Track(TileIndex tile, TileDesc *td)
|
||||
}
|
||||
};
|
||||
|
||||
td->str = signal_type[GetSignalType(tile, TRACK_UPPER)][GetSignalType(tile, TRACK_LOWER)];
|
||||
uint primary_signal;
|
||||
uint secondary_signal;
|
||||
if (HasSignalOnTrack(tile, TRACK_UPPER)) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user