1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(svn r14581) -Fix: make rail, road and canal building behave the same when overbuilding already built stretches.

This commit is contained in:
rubidium
2008-11-16 13:49:57 +00:00
parent fd3335521a
commit ffa3ec54f9

View File

@@ -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.