(svn r8514) -Codechange: Turn IsBuoy into a method of stations

This commit is contained in:
celestar
2007-02-01 16:48:38 +00:00
parent 33cadd5043
commit 5678febfe2
5 changed files with 13 additions and 9 deletions

View File

@@ -198,7 +198,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
st = GetStation(new_order.dest);
if (st->airport_type != AT_OILRIG && !IsBuoy(st) && !CheckOwnership(st->owner)) {
if (st->airport_type != AT_OILRIG && !st->IsBuoy() && !CheckOwnership(st->owner)) {
return CMD_ERROR;
}