1
0
Fork 0

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

release/0.7
rubidium 2008-11-16 13:49:57 +00:00
parent fd3335521a
commit ffa3ec54f9
1 changed files with 1 additions and 1 deletions

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.