OpenTTD

Tasklist

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

Attached to Project: OpenTTD
Opened by Zr40 (Zr40) - Thursday, 06 April 2006, 09:48 GMT
Last edited by Celestar (Celestar) - Thursday, 06 April 2006, 10:03 GMT
Type Bug
Category Core
Status Closed
Assigned To Tron (Tron)
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version 0.5.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

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.
This task depends upon

Closed by  Celestar (Celestar)
Sunday, 09 April 2006, 18:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Map accessors it temporarily removed
Comment by Celestar (Celestar) - Thursday, 06 April 2006, 10:03 GMT
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.

Loading...