Do not include aircraft in flight in the vehicle tile hash
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user