OpenTTD

Tasklist

FS#6262 - Lenient road stop removal

Attached to Project: OpenTTD
Opened by Grzegorz Duczyński (adf88) - Sunday, 22 March 2015, 21:41 GMT
Last edited by Ingo von Borstel (planetmaker) - Saturday, 11 April 2015, 11:50 GMT
Type Patch
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

Details

This patch makes the road stop removal tool behave lenient.

Currently the tool throws an error if any road stop within the dragged area fails to be removed. It can be a road stop of other company, a road stop with a vehicle inside etc. The patch modifies this behaviour. If there are any road stops that can be removed, they will be removed despite of any other road stops that couldn't be removed.

Note - ai/script backward compatibility is preserved. Script front-ends use the removal command only with single-tile areas. For single-tile areas the behaviour of the command is not altered.

I'm attaching two variants of the patch. The first one can be applied over clean trunk. The second one can be applied over  FS#6252 
This task depends upon

Closed by  Ingo von Borstel (planetmaker)
Saturday, 11 April 2015, 11:50 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r27225. Thanks for the patch :)
Comment by Grzegorz Duczyński (adf88) - Sunday, 22 March 2015, 21:44 GMT
Note - rail station removal tool is already "lenient".

Loading...