Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Loading savegame from a multiplayer game might assign you to the wrong company #7695
Version of OpenTTD
When you save a game in multiplayer, then load the savegame, you usually end up playing a different company.
When you load the savegame, you play as the same company you controlled when you saved the game.
When you load the savegame, you always play as company no. 1 which might or might be your company.
Steps to reproduce
I'd say this is intended behavior.
Single player will always be company 0, and the information which company you played is not saved. besides there will be confusion if you load a server autosave or someone else's save that they sent you.
Anyway, you can load the game as a multiplayer game (local server), if you don't want to use cheats.
The possible enhancement here is to know when the save was a multiplayer save (is there anything to indicate that currently?), and give a company selection window when loading (then drop the "is multiplayer" bit and assign the correct company)
But until then, yeah, this is intended behaviour. Feel free to implement the above though!