You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Samu> https://dev.openttdcoop.org/projects/lib-pathfinderroad/repository/entry/main.nut#L257
<Samu> AIRoad.CanBuildConnectedRoadPartsHere can return -1
<Samu> line needs to be changed to AIRoad.CanBuildConnectedRoadPartsHere(cur_node, path.GetParent().GetTile(), next_tile) > 1
<Samu> can you change it? it says you're project manager
<Samu> i mean > 0
<Samu> then i guess superlib would also needs fixed
...
<Samu> CanBuildConnectedRoadParts can in fact return -1, 0, 1 and 2
...
<Samu> there has been a recent fix regarding that function on OpenTTD side, so it's kind of relevant if it was also fixed in the library
<Samu> it still works, doesn't appear to be breaking AIs, but, it's accepting -1 as true
...
<Samu> btw, you may add this link https://github.com/OpenTTD/OpenTTD/pull/8036
<Samu> makes it easier to understand what's solved
AIRoad.CanBuildConnectedRoadPartsHere can return
-1 on incorrect params or if you play games of
different map sizes without restarting OpenTTD
inbetween before OpenTTD 1.10.
Source
Original issue by zuu
The text was updated successfully, but these errors were encountered: