mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
(svn r16120) [0.7] -Backport from trunk:
- Fix: Road was removed when both the Remove button was active and Ctrl was pressed [FS#2582] (r16119) - Fix: Connect tried to validate too much of the company ID with too little information on hand [FS#2849] (r16096) - Fix: Insanely fast trains would not stop in time for stations/'jump' over waypoints/via stations within a tick, which would cause the order not to be processed causing the train to go in loops until (with luck) it 'hit' the tile [FS#2824] (r16079) - Fix: Content download progress bar 'resetting' due to mathematical overflow [FS#2845] (r16071) - Fix: Memory leak when querying a server multiple times (r16064)
This commit is contained in:
@@ -2603,7 +2603,6 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold)
|
||||
|
||||
Town *town = GetTown(tid);
|
||||
assert(town->IsValid());
|
||||
assert(town == CalcClosestTownFromTile(tile));
|
||||
|
||||
if (DistanceManhattan(tile, town->xy) >= threshold) town = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user