diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 51e53ec80..f70e43bdd 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,7 @@ D2X-Rebirth Changelog -------- main/kconfig.c: Fixing issue when assigning mouse button if a citem is still pointed out; Fixing still processing key commands even if we want to assign a key; After setting mouse button, reset mouse state properly arch/sdl/digi_mixer_music.c: Fixing issue introduced in rev1139: Game could of course not open music files which are not inside Searchpath or added to it - re-added playing over absolute path +main/net_ipx.c, main/net_udp.c: When selecting coop game mode, make sure that besides max players menu values also actual player number is set and menu text is updated properly 20100704 -------- diff --git a/main/net_ipx.c b/main/net_ipx.c index 1c9e51c3d..4c2ebfb84 100644 --- a/main/net_ipx.c +++ b/main/net_ipx.c @@ -3021,6 +3021,8 @@ int net_ipx_game_param_handler( newmenu *menu, d_event *event, param_opt *opt ) { menus[opt->maxnet].max_value=2; } + sprintf( menus[opt->maxnet].text, "Maximum players: %d", menus[opt->maxnet].value+2 ); + Netgame.max_numplayers = MaxNumNetPlayers = menus[opt->maxnet].value+2; if (!(Netgame.game_flags & NETGAME_FLAG_SHOW_MAP)) Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP; diff --git a/main/net_udp.c b/main/net_udp.c index 7ac1acdac..e997c4584 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -3043,6 +3043,8 @@ int net_udp_game_param_handler( newmenu *menu, d_event *event, param_opt *opt ) { menus[opt->maxnet].max_value=2; } + sprintf( menus[opt->maxnet].text, "Maximum players: %d", menus[opt->maxnet].value+2 ); + Netgame.max_numplayers = MaxNumNetPlayers = menus[opt->maxnet].value+2; if (!(Netgame.game_flags & NETGAME_FLAG_SHOW_MAP)) Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP;