You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a company bankrupts in multiplayer and it has road stops the client in that company will assert (see attached stacktrace.txt and crash.*). The bankruptcy works fine in the server.
If the bankrupt company has only rail stations or railways, in the client they will get "someone" as owner instead of being deleted (again, they are correctly deleted in the server). See attached rail_station.sav.
While debugging the first assertion it seems that when removing company property _current_company is set to COMPANY_SPECTATOR, which results in failed CheckOwnership tests for road stops and as a result, the road stops are not removed.
I guess it has to do with NetworkClientsToSpectators calling SetLocalCompany, which... to not much surprise sets _current_company to COMPANY_SPECTATOR. So adding _current_company = old_owner (or something similar) after the call to NetworkClientsToSpectators might very well do the trick.
I'm not quite sure whether that might have repurcussions somewhere else though.
Terkhen opened the ticket and wrote:
Attachments
Reported version: 1.1.0-RC1
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/4529
The text was updated successfully, but these errors were encountered: