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

engine replacement and groups #4207

Closed
DorpsGek opened this issue Nov 6, 2010 · 3 comments
Closed

engine replacement and groups #4207

DorpsGek opened this issue Nov 6, 2010 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Nov 6, 2010

planetmaker opened the ticket and wrote:

[09:41] Well, this is strange. I wanted to replace the engine on a train -- just one train -- without disturbing its orders. But trains seem to be numbered according to the engine; move the engine and the number moves with it.
[09:41] So, I added the new engine to the old train (MU); then, I took away the old engine. For this to work, I had to shuffle the engines around; otherwise, the old engine took the train number with it anyway.
[09:41] This train was originally part of a group of trains, with shared orders. The jiggery-pokery somehow got the orders cleared and unshared. But that's not the curious thing.
[09:41] The group originally had 4 trains and then, after this exchange, only 3 -- although I could still see all 4 clearly in the list. So, I took the trains out, one by one. Now the group is empty and contains 65,535 trains. Please don't tell me why 65,535; I know why 65,535. I don't know why not 0.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4207
@DorpsGek
Copy link
Member Author

Eddi wrote:

Steps to reproduce:

  1. put a multi-headed train in a group
    2a. move the front engine away
    2b. move the second engine away

in variant a, you get two trains in the group, but the group counter is not updated
in variant b, you get one train in the group, and one ungrouped train, so the counter stays correct.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4207#comment9084

@DorpsGek
Copy link
Member Author

planetmaker wrote:

version 2a. It requires the train to have two engines in the first place, one of them being double-headed. Maybe other combinations work.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4207#comment9085

@DorpsGek
Copy link
Member Author

Terkhen closed the ticket.

Reason for closing: Fixed

In r21205.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4207

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant