Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AITile.HasTransportType(road) returns false on road stump #3806

Closed
DorpsGek opened this issue May 2, 2010 · 3 comments
Closed

AITile.HasTransportType(road) returns false on road stump #3806

DorpsGek opened this issue May 2, 2010 · 3 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented May 2, 2010

Zuu opened the ticket and wrote:

Tile with Road stump do not have road according to AITile.HasTransportType. See the circled tile in the attached screenshot. I don't know if this is the case for all directions or just this direction.

The code that placed the no_road sign (in the attached screenshot):

function RoadBuilder::RemoveRoadUpToRoadCrossing(start_tile)
{
if (!AITile.HasTransportType(start_tile, AITile.TRANSPORT_ROAD))
{
Helper.SetSign(start_tile, "no_road", true);
Log.Info("RemoveRoadUpToRoadCrossing fails because start tile do not have road", Log.LVL_DEBUG);
return false;
}

OpenTTD version: r19748

I couldn't find any fix that looked related in the recent svn log or recent bug reports regarding this.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3806
@DorpsGek
Copy link
Member Author

DorpsGek commented May 2, 2010

Rubidium wrote:

http://noai.openttd.org/docs/1.0.0/classAITile.html# 272347419b706cbf9c4bfaf7fa418d1d


This comment was imported from FlySpray: https://bugs.openttd.org/task/3806#comment7972

@DorpsGek
Copy link
Member Author

DorpsGek commented May 7, 2010

Zuu wrote:

Hmm, yep you're right that the documentation says that that's by design. For reference AIRoad.IsRoadTile for road tiles including road stumps.

So I guess this task can be closed?


This comment was imported from FlySpray: https://bugs.openttd.org/task/3806#comment7996

@DorpsGek
Copy link
Member Author

DorpsGek commented May 8, 2010

Rubidium closed the ticket.

Reason for closing: Not a bug

Works as described in the API


This comment was imported from FlySpray: https://bugs.openttd.org/task/3806

@DorpsGek DorpsGek closed this as completed May 8, 2010
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant