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
This commit is contained in:
parent
a7497054c3
commit
d15778e03c
|
@ -4,6 +4,7 @@ D1X-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
|
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
|
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
|
20100704
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -2368,6 +2368,8 @@ int net_ipx_game_param_handler( newmenu *menu, d_event *event, param_opt *opt )
|
||||||
{
|
{
|
||||||
menus[opt->maxnet].max_value=2;
|
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))
|
if (!(Netgame.game_flags & NETGAME_FLAG_SHOW_MAP))
|
||||||
Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP;
|
Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP;
|
||||||
|
|
|
@ -2816,6 +2816,8 @@ int net_udp_game_param_handler( newmenu *menu, d_event *event, param_opt *opt )
|
||||||
{
|
{
|
||||||
menus[opt->maxnet].max_value=2;
|
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))
|
if (!(Netgame.game_flags & NETGAME_FLAG_SHOW_MAP))
|
||||||
Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP;
|
Netgame.game_flags |= NETGAME_FLAG_SHOW_MAP;
|
||||||
|
|
Loading…
Reference in a new issue