Unless I'm mistaken, the function AITile.GetCargoAcceptance/Production seems to have been changed since 0.7.0.
http://noai.openttd.org/docs/classAITil ... 773f396c8e
I think a precondition has been added that the radius must be greater than 0. This limits functionality, as before we could do
Code: Select all
AITile.GetCargoProduction(tile, cargo, 1, 1, 0)
Using a radius of 1 doesn't break this behaviour completely, but it does invalidate the assumptions behind the theory. It means we can no longer pin-point things like petrol stations, and in the case where two towns are directly adjacent to each other this may mean that a town is incorrectly flagged as accepting tourists.
It seems odd to me that someone would intentionally remove this functionality. I imagine that the functions were being cleaned up and whoever did it didn't realise that a radius of zero was acceptable.
The functionality could be very simply restored by just changing the precondition to be >=0. Could this be fixed perhaps in time for 0.7.2?
Thanks very much.
Edit: This also breaks a long standing feature of my AI to detect the proportion of cargo accepting tiles (i.e. houses) in a town that are serviced by stations.