diff options
author | terkhen <terkhen@openttd.org> | 2010-07-09 16:41:51 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-07-09 16:41:51 +0000 |
commit | f363f64c51eccfebbf24fc5947bd4df249e32d3d (patch) | |
tree | 116c16cc8509404298e839a03c779919a32eae30 /src | |
parent | 811f0db597b3967a4e7c4bf0b56a96c8ab48dd72 (diff) | |
download | openttd-f363f64c51eccfebbf24fc5947bd4df249e32d3d.tar.xz |
(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 41ef5b0d6..dfe66a7ab 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -861,6 +861,9 @@ CommandCost CmdRemoveLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32 had_success = true; } else { last_error = ret; + + /* Ownership errors are more important. */ + if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break; } } |