(svn r20100) -Fix: Give priority to ownership errors while removing rails.

This commit is contained in:
terkhen
2010-07-09 16:43:00 +00:00
parent ca7172bc94
commit e66fd55fbd

View File

@@ -770,6 +770,9 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3
if (HasBit(p2, 8)) return last_error;
break;
}
/* Ownership errors are more important. */
if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY && remove) break;
} else {
had_success = true;
total_cost.AddCost(ret);