From 791851ad82b34ca116b44d9dadc39828c530c094 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Mon, 16 Aug 2010 11:50:37 +0000 Subject: [PATCH] When switching from COOP to any other game mode, make sure Netgame.max_numplayers, MaxNumNetPlayers as well as the menu text showing the player limit is updated correctly --- CHANGELOG.txt | 4 ++++ main/net_ipx.c | 2 ++ main/net_udp.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 17dd49d5a..bd964aa44 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D1X-Rebirth Changelog +20100816 +-------- +main/net_ipx.c, main/net_udp.c: When switching from COOP to any other game mode, make sure Netgame.max_numplayers, MaxNumNetPlayers as well as the menu text showing the player limit is updated correctly + 20100815 -------- INSTALL.txt, include/physfsx.h, main/inferno.c, misc/physfsx.c: Added support to automatically load/mount ZIP files at startup, giving option to dynamically override or replace game content; Updated docs diff --git a/main/net_ipx.c b/main/net_ipx.c index 093662c2f..957e2168e 100644 --- a/main/net_ipx.c +++ b/main/net_ipx.c @@ -2381,6 +2381,8 @@ int net_ipx_game_param_handler( newmenu *menu, d_event *event, param_opt *opt ) oldmaxnet=0; menus[opt->maxnet].value=6; menus[opt->maxnet].max_value=6; + sprintf( menus[opt->maxnet].text, "Maximum players: %d", menus[opt->maxnet].value+2 ); + Netgame.max_numplayers = MaxNumNetPlayers = menus[opt->maxnet].value+2; } } diff --git a/main/net_udp.c b/main/net_udp.c index 70198da07..f2d82b52d 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -2851,6 +2851,8 @@ int net_udp_game_param_handler( newmenu *menu, d_event *event, param_opt *opt ) oldmaxnet=0; menus[opt->maxnet].value=6; menus[opt->maxnet].max_value=6; + sprintf( menus[opt->maxnet].text, "Maximum players: %d", menus[opt->maxnet].value+2 ); + Netgame.max_numplayers = MaxNumNetPlayers = menus[opt->maxnet].value+2; } }