summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-28 19:26:32 +0000
committerrubidium <rubidium@openttd.org>2007-05-28 19:26:32 +0000
commit66c23060e21e887ada9afca18f98ece773850f3a (patch)
tree26b8d79abb93405a8111c34c6c381b8a14d2ea83 /src
parent63f79659208c76ce51b370669f6cb0178c415b09 (diff)
downloadopenttd-66c23060e21e887ada9afca18f98ece773850f3a.tar.xz
(svn r9964) -Fix: removing of road should not be free of charge.
Diffstat (limited to 'src')
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index fd79bd665..5fe6a9bf0 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -740,7 +740,7 @@ static int32 ClearTile_Road(TileIndex tile, byte flags)
if (HASBIT(rts, rt)) {
int32 tmp_ret = DoCommand(tile, rt << 4 | GetRoadBits(tile, rt), 0, flags, CMD_REMOVE_ROAD);
if (CmdFailed(tmp_ret)) return tmp_ret;
- ret += rt;
+ ret += tmp_ret;
}
}
return ret;