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

[PATCH] train crashed just first train it encountered #892

Closed
DorpsGek opened this issue Jun 19, 2007 · 1 comment
Closed

[PATCH] train crashed just first train it encountered #892

DorpsGek opened this issue Jun 19, 2007 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

SmatZ opened the ticket and wrote:

in CheckTrainCollision(), train crashes after the first match
It may cause desync as all players may have different order of vehicles in the hash table

Another problem, crashing only one train is not correct - when you move the uncrashed train, it crashes immediatelly if you set them correctly.

This patch causes that all trains that should crash, crash.

How to cause desync:
see attached file - build tracks, then trains 1,2,3
Let train 2 go to its place, then train 1
Later, let train 3 crash them.
Players that connected after you prepared trains 1,2 will get disconnected.

When used at a public server, you may connect at the beginning of the game, then connect after few years crash trains and disconnect everyone (however they may connect back)

(this patch was discussed at # openttd )

Attachments

Reported version: 0.5.2
Operating system: All


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

peter1138 closed the ticket.

Reason for closing: Implemented

In r10222


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 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