mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r7583) -Fix (r7573): Merging of bridge branch broke (partially reverted?) automatic railtype conversion when building track on existing rail.
This commit is contained in:
parent
8a812544ec
commit
eb4a2e45c3
@ -253,7 +253,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
return CMD_ERROR;
|
||||
}
|
||||
if (!IsTileOwner(tile, _current_player) ||
|
||||
GetRailType(tile) != railtype) {
|
||||
!IsCompatibleRail(GetRailType(tile), railtype)) {
|
||||
// Get detailed error message
|
||||
return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user