From c88a6199a7dfc45668da893021d072d4eac6fc5d Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 26 Dec 2008 18:01:15 +0000 Subject: (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) --- src/disaster_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/disaster_cmd.cpp') diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index 678fc7de4..36c365d11 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -771,7 +771,7 @@ static void Disaster_Zeppeliner_Init() x = TileX(Random()) * TILE_SIZE + TILE_SIZE / 2; FOR_ALL_STATIONS(st) { - if (st->airport_tile != 0 && + if (st->airport_tile != INVALID_TILE && st->airport_type <= 1 && IsHumanCompany(st->owner)) { x = (TileX(st->airport_tile) + 2) * TILE_SIZE; -- cgit v1.2.3-54-g00ecf