FS#6538 - Cost of removing secondary road type from bridge/tunnel is only half of correct value

Attached to Project: OpenTTD
Opened by J G Rennison (JGR) - Sunday, 05 February 2017, 15:55 GMT
Last edited by frosch (frosch) - Sunday, 12 February 2017, 12:03 GMT
Type Bug
Category Core
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


The cost of removing the secondary road type from a bridge/tunnel is only half of removing the equivalent length of secondary road type from plain road.
This is because in calculating the cost the length in tiles is used, instead of the length in pieces.
A patch to fix this is attached.
This task depends upon

Closed by  frosch (frosch)
Sunday, 12 February 2017, 12:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r27746. Thanks for the patch!