mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required.
This commit is contained in:
parent
102f9be296
commit
016c498216
@ -1117,8 +1117,10 @@ DEF_CONSOLE_HOOK(ConHookServerPW)
|
||||
if (strncmp(_network_server_password, "*", NETWORK_PASSWORD_LENGTH) == 0) {
|
||||
_network_server_password[0] = '\0';
|
||||
_network_game_info.use_password = 0;
|
||||
} else
|
||||
} else {
|
||||
ttd_strlcpy(_network_game_info.server_password, _network_server_password, sizeof(_network_server_password));
|
||||
_network_game_info.use_password = 1;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user