(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.

This commit is contained in:
terkhen 2010-07-09 16:41:51 +00:00
parent 811f0db597
commit f363f64c51
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}