(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
alberth 14 years ago
parent 177358f552
commit 43b4d23b07

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

Loading…
Cancel
Save