mirror of https://github.com/OpenTTD/OpenTTD
(svn r14581) -Fix: make rail, road and canal building behave the same when overbuilding already built stretches.
parent
fd3335521a
commit
ffa3ec54f9
|
@ -725,7 +725,7 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, uint32 flags, uint32 p1, u
|
|||
if (!IsDiagonalTrackdir(trackdir)) ToggleBit(trackdir, 0);
|
||||
}
|
||||
|
||||
return (total_cost.GetCost() == 0) ? CMD_ERROR : total_cost;
|
||||
return (total_cost.GetCost() == 0) ? CommandCost(STR_1007_ALREADY_BUILT) : total_cost;
|
||||
}
|
||||
|
||||
/** Build rail on a stretch of track.
|
||||
|
|
Loading…
Reference in New Issue