summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-25 10:04:13 +0000
committeralberth <alberth@openttd.org>2010-07-25 10:04:13 +0000
commit43b4d23b07d1565bab7556b8f3dd43040637bc4e (patch)
tree218a0b7b62dc46e720ad3712eee2bf2b262c397b /src
parent177358f5525b665f8da99892f43edafd9086fa04 (diff)
downloadopenttd-43b4d23b07d1565bab7556b8f3dd43040637bc4e.tar.xz
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
Diffstat (limited to 'src')
-rw-r--r--src/road_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 4b82d8eb7..0d286cb66 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -860,10 +860,8 @@ CommandCost CmdRemoveLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32
cost.AddCost(ret);
had_success = true;
} else {
- last_error = ret;
-
/* Ownership errors are more important. */
- if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break;
+ if (last_error.GetErrorMessage() != STR_ERROR_OWNED_BY) last_error = ret;
}
}