mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r11260) -Codechange: replace a magic number by a less magic enumified constant. Patch by ammler.
This commit is contained in:
parent
835a9670af
commit
41b3c86d8e
@ -593,10 +593,8 @@ DEF_CONSOLE_CMD(ConServerInfo)
|
|||||||
|
|
||||||
DEF_CONSOLE_HOOK(ConHookValidateMaxClientsCount)
|
DEF_CONSOLE_HOOK(ConHookValidateMaxClientsCount)
|
||||||
{
|
{
|
||||||
/* XXX - hardcoded, string limiation -- TrueLight
|
if (_network_game_info.clients_max > MAX_CLIENTS) {
|
||||||
* XXX - also see network.c:NetworkStartup ~1356 */
|
_network_game_info.clients_max = MAX_CLIENTS;
|
||||||
if (_network_game_info.clients_max > 10) {
|
|
||||||
_network_game_info.clients_max = 10;
|
|
||||||
IConsoleError("Maximum clients out of bounds, truncating to limit.");
|
IConsoleError("Maximum clients out of bounds, truncating to limit.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user