summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-16 13:49:57 +0000
committerrubidium <rubidium@openttd.org>2008-11-16 13:49:57 +0000
commitffa3ec54f9047116495532c20b986f955cf13c4d (patch)
tree17b1c8570ecd902137159dd89b6ec6217b34735f /src
parentfd3335521a536df5da75ead47ccc3ca7517f02d2 (diff)
downloadopenttd-ffa3ec54f9047116495532c20b986f955cf13c4d.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.cpp2
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.