Replace vehicle tile hash
Use robin hood hash of TileIndex Retain linked list of vehicles on the same tile
This commit is contained in:
@@ -205,7 +205,7 @@ class NIHVehicle : public NIHelper {
|
||||
b += seprintf(b, lastof(buffer), " [-] Flags:\n");
|
||||
b = v->DumpVehicleFlagsMultiline(b, lastof(buffer), " ", " ");
|
||||
ProcessLineByLine(buffer, output.print);
|
||||
seprintf(buffer, lastof(buffer), " Tile hash: %s", (v->hash_tile_current != nullptr) ? "yes" : "no");
|
||||
seprintf(buffer, lastof(buffer), " Tile hash: %s", (v->hash_tile_current != INVALID_TILE) ? "yes" : "no");
|
||||
output.print(buffer);
|
||||
} else {
|
||||
b += seprintf(b, lastof(buffer), " [+] Flags: ");
|
||||
|
Reference in New Issue
Block a user