From e67b985bfac22680f1916280ce6e7dda82620c47 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 28 Sep 2007 19:24:52 +0000 Subject: (svn r11183) -Fix [FS#1249]: airports do not need to care about overflying aircraf when removing them, because if they were not in the "flying" state it can't be removed anyway. --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 1507c73e2..28ac9e134 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1732,7 +1732,7 @@ static CommandCost RemoveAirport(Station *st, uint32 flags) } BEGIN_TILE_LOOP(tile_cur, w, h, tile) { - if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR; + if (!EnsureNoVehicleOnGround(tile_cur)) return CMD_ERROR; if (flags & DC_EXEC) { DeleteAnimatedTile(tile_cur); -- cgit v1.2.3-54-g00ecf