Mercurial > hg > openttd
changeset 15555:c1c03be628a3 draft
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
author | alberth <alberth@openttd.org> |
---|---|
date | Sun, 25 Jul 2010 10:04:13 +0000 |
parents | 7a4157471eb4 |
children | fd595e1074a2 |
files | src/road_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -860,10 +860,8 @@ 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; } }