(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.
authorrubidium
Fri, 28 Sep 2007 19:24:52 +0000
changeset 7652 a2048af4a7f9
parent 7651 99bd9cd9e684
child 7653 dd252420d9c2
(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
--- a/src/station_cmd.cpp	Fri Sep 28 19:17:33 2007 +0000
+++ b/src/station_cmd.cpp	Fri Sep 28 19:24:52 2007 +0000
@@ -1732,7 +1732,7 @@
 	}
 
 	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);