OpenTTD

Tasklist

FS#3318 - Build roads tool: build road up to objects instead of discarding entire build

Attached to Project: OpenTTD
Opened by Teemu (Tve4) - Thursday, 19 November 2009, 22:34 GMT
Last edited by Remko Bijker (Rubidium) - Thursday, 14 January 2010, 23:05 GMT
Type Feature Request
Category Build system
Status Closed
Assigned To No-one
Operating System Windows
Severity Low
Priority Normal
Reported Version 0.7.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When building a road (either with using "build section" or "use autoroad tool") and the segment of the road to be built meets and obstruction (tunnel, industry, etc.) simply build the road from start point up to the obstruction (instead of refusing to build anything). Railroad build tool always builds rails up to the obstruction.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Thursday, 14 January 2010, 23:05 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r18803
Comment by Jose Soler (Terkhen) - Saturday, 05 December 2009, 22:42 GMT
I have coded a patch that implements this feature. I think it is a bit hackish, so any ideas on how to implement it more correctly will be welcome.
Comment by Jose Soler (Terkhen) - Thursday, 17 December 2009, 10:20 GMT
New version with a cleaner code.
Comment by Jose Soler (Terkhen) - Saturday, 09 January 2010, 12:39 GMT
New version which uses DiagDir instead of a boolean value to check road direction (made by Hirundo) and adds some comments and code cleanup.

Edit: Download the second version (CORRECTED): A comment needed to be rewritten.
Comment by Jose Soler (Terkhen) - Thursday, 14 January 2010, 18:53 GMT
Update to current trunk, after some parts of the code where commited to trunk. I also cleaned up a hackish if / else.

Loading...