mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-21 04:29:42 +01:00
(svn r14581) -Fix: make rail, road and canal building behave the same when overbuilding already built stretches.
This commit is contained in:
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
Block a user