Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature #7735: Implement protocol handling #7981
Basically does what #7735 asks for.
In openttd.cpp L475-483, I added cases for joining as a new company ("new") and joining as a spectator (""). These changes will affect the way a command line connection string (-n host:post#company) is parse but I think that would be ideal.
Let me know what you think.
I haven't actually changed any installation code. So far, this is only another command line option. It still needs to be added to the installation so that clicking a link would open OpenTTD.
Also, I forgot about "ask the player for confirmation before beginning to connect"...