(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft

This commit is contained in:
smatz
2009-07-13 16:37:27 +00:00
parent 868c21cbcc
commit b6960e4e17
11 changed files with 33 additions and 32 deletions

View File

@@ -1878,7 +1878,7 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags)
const Aircraft *a;
FOR_ALL_AIRCRAFT(a) {
if (!IsNormalAircraft(a)) continue;
if (!a->IsNormalAircraft()) continue;
if (a->targetairport == st->index && a->state != FLYING) return CMD_ERROR;
}