Codechange: Replace CircularTileSearch with SpiralTileSequence.

This commit is contained in:
frosch
2025-04-19 15:58:48 +02:00
committed by frosch
parent 0dada5a750
commit b956af631e
10 changed files with 223 additions and 412 deletions
+1 -1
View File
@@ -387,7 +387,7 @@ Rect Station::GetCatchmentRect() const
*/
void Station::AddIndustryToDeliver(Industry *ind, TileIndex tile)
{
/* Using DistanceMax to get about the same order as with previously used CircularTileSearch. */
/* Using DistanceMax to get about the same order as with previously used SpiralTileSequence. */
uint distance = DistanceMax(this->xy, tile);
/* Don't check further if this industry is already in the list but update the distance if it's closer */