src/vehicle.cpp
changeset 7727 5aaf86199444
parent 7702 f963cd54d4d5
child 7758 17ad53748c7b
--- a/src/vehicle.cpp	Sun Oct 14 19:57:15 2007 +0000
+++ b/src/vehicle.cpp	Sun Oct 14 20:12:51 2007 +0000
@@ -119,7 +119,7 @@
 
 static void *EnsureNoVehicleProc(Vehicle *v, void *data)
 {
-	if (v->tile != *(const TileIndex*)data || v->type == VEH_DISASTER)
+	if (v->tile != *(const TileIndex*)data || v->type == VEH_DISASTER || (v->type == VEH_AIRCRAFT && v->subtype == AIR_SHADOW))
 		return NULL;
 
 	_error_message = VehicleInTheWayErrMsg(v);
@@ -135,7 +135,7 @@
 {
 	const TileInfo *ti = (const TileInfo*)data;
 
-	if (v->tile != ti->tile || v->type == VEH_DISASTER) return NULL;
+	if (v->tile != ti->tile || v->type == VEH_DISASTER || (v->type == VEH_AIRCRAFT && v->subtype == AIR_SHADOW)) return NULL;
 	if (v->z_pos > ti->z) return NULL;
 
 	_error_message = VehicleInTheWayErrMsg(v);