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

Assertion failed in bridge_map.h when AI is enabled #102

Closed
DorpsGek opened this issue Apr 6, 2006 · 2 comments
Closed

Assertion failed in bridge_map.h when AI is enabled #102

DorpsGek opened this issue Apr 6, 2006 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Apr 6, 2006

Zr40 opened the ticket and wrote:

When new AI is enabled, I get the following assertion
when it tries to build.

File: ai/trolly/../../bridge_map.h
Line: 68
Expression: IsBridgeRamp(t)

When I ignore this assertion, I get another one.

File: ai/trolly/../../bridge_map.h
Line: 28
Expression: IsBridgeTile(t)

When I ignore this one, openttd crashes.

To reproduce:
- Enable competitors
- Enable new AI
- Start a new game
- Wait until a competitor starts construction.

Reported version: trunk
Operating system: All


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

DorpsGek commented Apr 6, 2006

Celestar wrote:

Seems to happen in revision 3907, ai/trolly/pathfinder.c:237.

Before, it was _m[atile].m5 & 1U which works on both middle tiles and bridge heads.
GetBridgeRampDirection(atile): this works on bridge ramps only of course.


This comment was imported from FlySpray: https://bugs.openttd.org/task/102#comment170

@DorpsGek
Copy link
Member Author

DorpsGek commented Apr 9, 2006

Celestar closed the ticket.

Reason for closing: Fixed

Map accessors it temporarily removed


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

@DorpsGek DorpsGek closed this as completed Apr 9, 2006
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant