From a9156ed51630f8b20f5ad4cf65c82f6c57be53b9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 22 Mar 2023 17:55:06 +0000 Subject: [PATCH] Do not include aircraft in flight in the vehicle tile hash --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 8b4c27be58..1965332f5e 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -855,7 +855,7 @@ void UpdateVehicleTileHash(Vehicle *v, bool remove) Vehicle **old_hash = v->hash_tile_current; Vehicle **new_hash; - if (remove || HasBit(v->subtype, GVSF_VIRTUAL)) { + if (remove || HasBit(v->subtype, GVSF_VIRTUAL) || (v->tile == 0 && _settings_game.construction.freeform_edges)) { new_hash = nullptr; } else { int x = GB(TileX(v->tile), HASH_RES, HASH_BITS);