mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-24 05:32:59 +01:00
Just provide the number of tiles per side, a pointer to a test function, the tile to start searching and voila. Fixes [FS#364] by removing a lengthy and suboptimal random search pattern. Thanks Rubidium.
5.5 KiB
5.5 KiB