FS#1070 - Trolly Pathfinder Slope Detection wrong (Patch attached)

Attached to Project: OpenTTD
Opened by frosch (frosch) - Monday, 23 July 2007, 14:08 GMT
Type Bug
Category Script → Original
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Maybe obsolete because of NoAI, but: Trolly pathfinder did not correctly detect slopes.

The patch consists of three changes:
1) Slope was tested for tileh, not parent_tileh
2) Trolly did not know about build on steep slopes. (Though this does not matter for road building.)
I know the foundations are magic numbers, but that's a different patch.
3) In the road part, the "HASBIT(BRIDGE_NO_FOUNDATION, parent_tileh)"-thingy was missing.
This task depends upon

Closed by  Patric Stout (TrueBrain)
Monday, 23 July 2007, 15:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r10655; tnx!