mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Cleanup: remove command line option for company password
This commit is contained in:
@@ -168,7 +168,6 @@ static void ShowHelp()
|
||||
" -G seed = Set random seed\n"
|
||||
" -n host[:port][#company]= Join network game\n"
|
||||
" -p password = Password to join server\n"
|
||||
" -P password = Password to join company\n"
|
||||
" -D [host][:port] = Start dedicated server\n"
|
||||
#if !defined(_WIN32)
|
||||
" -f = Fork into the background (dedicated only)\n"
|
||||
@@ -384,7 +383,6 @@ struct AfterNewGRFScan : NewGRFScanCallback {
|
||||
uint16_t dedicated_port = 0; ///< Port for the dedicated server.
|
||||
std::string connection_string; ///< Information about the server to connect to
|
||||
std::string join_server_password; ///< The password to join the server with.
|
||||
std::string join_company_password; ///< The password to join the company with.
|
||||
bool save_config = true; ///< The save config setting.
|
||||
|
||||
/**
|
||||
@@ -448,7 +446,7 @@ struct AfterNewGRFScan : NewGRFScanCallback {
|
||||
LoadIntroGame();
|
||||
_switch_mode = SM_NONE;
|
||||
|
||||
NetworkClientConnectGame(connection_string, COMPANY_NEW_COMPANY, join_server_password, join_company_password);
|
||||
NetworkClientConnectGame(connection_string, COMPANY_NEW_COMPANY, join_server_password);
|
||||
}
|
||||
|
||||
/* After the scan we're not used anymore. */
|
||||
@@ -485,7 +483,7 @@ static std::vector<OptionData> CreateOptions()
|
||||
{
|
||||
std::vector<OptionData> options;
|
||||
/* Options that require a parameter. */
|
||||
for (char c : "GIMPSbcmnpqrstv") options.push_back({ .type = ODF_HAS_VALUE, .id = c, .shortname = c });
|
||||
for (char c : "GIMSbcmnpqrstv") options.push_back({ .type = ODF_HAS_VALUE, .id = c, .shortname = c });
|
||||
#if !defined(_WIN32)
|
||||
options.push_back({ .type = ODF_HAS_VALUE, .id = 'f', .shortname = 'f' });
|
||||
#endif
|
||||
@@ -558,9 +556,6 @@ int openttd_main(std::span<char * const> arguments)
|
||||
case 'p':
|
||||
scanner->join_server_password = mgo.opt;
|
||||
break;
|
||||
case 'P':
|
||||
scanner->join_company_password = mgo.opt;
|
||||
break;
|
||||
case 'r': ParseResolution(&resolution, mgo.opt); break;
|
||||
case 't': scanner->startyear = atoi(mgo.opt); break;
|
||||
case 'd': {
|
||||
|
||||
Reference in New Issue
Block a user