Svip wrote:I have added some Station Catchment zoning, thanks to the coding of PhilSophus, however, as we have agreed, the coding might need some fixing, but for now it works perfectly fine.
To make clear what Svip means by that: First, I just took the code for catchment detection out of MoveGoodsToStation, so that the code is duplicated, which is not very nice. Second, the code does quite a lot per tile as it searches the maximum catchment area (which is 21x21 tiles at the moment) for stations. You will notice that when you zoom out with catchment area enabled, scrolling will get very bumpy. The code is just a quick-and-dirty proof-of-concept implementation (I mean my station catchment part, not Svip's patch
).
I'm working at a better solution. However, it will take some time, as I try to implement a quite generic solution (namely kind of a map cache for extra, map-related data), which the current catchment handling and maybe other parts of the code can benefit from, too.
"The bigger the island of our knowledge, the longer the shore of our ignorance" - John A. Wheeler, Physicist, 1911-2008