Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't remove railroad with drag and drop #10088

Closed
condac opened this issue Oct 17, 2022 · 2 comments
Closed

[Bug]: Can't remove railroad with drag and drop #10088

condac opened this issue Oct 17, 2022 · 2 comments

Comments

@condac
Copy link

condac commented Oct 17, 2022

Version of OpenTTD

3b071f4 (master) Linux

Expected result

Trying to remove railroad track using autobuild tool and remove function I get error that I can not remove track when using it in certain orientations and depending on where you start dragging.

Actual result

Error dialog saying I can not remove track.

Steps to reproduce

Image showing some combinations that can not be removed using drag function.
removebug

Using git bisect i have located the following:
db98ced is the first bad commit
commit db98ced
Date: Wed May 11 18:52:38 2022 -0600

Fix #9883: Show cost/income float over end tile of rail or road construction
@James103
Copy link
Contributor

Can reproduce in 3b071f4. It is only possible to remove diagonal track if the selection spans an odd number of pieces (1, 3, 5, 7, ...). If the selection spans an even number of pieces, the command fails. The actual number of pieces of track inside the selection does not matter. Straight track (aligned with the grid) can still be removed like before.

@2TallTyler
Copy link
Member

This was already fixed in dd26436. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants