diff options
author | rubidium <rubidium@openttd.org> | 2008-11-16 13:49:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-11-16 13:49:57 +0000 |
commit | 9fdac4e1d0ec3932afd06171ee13ce62c1651319 (patch) | |
tree | 17b1c8570ecd902137159dd89b6ec6217b34735f /src | |
parent | 1fa4be9d6d2bba27c453bedeec2feee1fc14546f (diff) | |
download | openttd-9fdac4e1d0ec3932afd06171ee13ce62c1651319.tar.xz |
(svn r14581) -Fix: make rail, road and canal building behave the same when overbuilding already built stretches.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 3b3621c46..bf5dee271 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -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. |