Talk:AI:Need To Know

From OpenTTD
Jump to: navigation, search

removed "You can use AIRoad.AreRoadTilesConnected() to ensure drivable connections between road sections. "

This statement is not true accoring to the AI API which states that

'tile_from' and 'tile_to' are directly neighbouring tiles.

http://devs.openttd.org/~noai/aidocs/classAIRoad.html#e9267446af65ced279bbd8a980221b65

Its also my experience programming that the tiles have to be adjacent. As a result I removed the statement. It would be good if this function did work in this way.

Personal tools