mirror of https://github.com/OpenTTD/OpenTTD
(svn r16101) -Cleanup (r14591): Remove an assertion to increase performance.
parent
d18cea5369
commit
f0a4bbda6d
|
@ -2612,7 +2612,6 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold)
|
||||||
|
|
||||||
Town *town = GetTown(tid);
|
Town *town = GetTown(tid);
|
||||||
assert(town->IsValid());
|
assert(town->IsValid());
|
||||||
assert(town == CalcClosestTownFromTile(tile));
|
|
||||||
|
|
||||||
if (DistanceManhattan(tile, town->xy) >= threshold) town = NULL;
|
if (DistanceManhattan(tile, town->xy) >= threshold) town = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue