Do not include aircraft in flight in the vehicle tile hash

This commit is contained in:
Jonathan G Rennison
2023-03-22 17:55:06 +00:00
parent bd3df161e4
commit a9156ed516

View File

@@ -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);