fixed player restriction at robot-/coop-games - code cleanup

This commit is contained in:
zicodxx 2007-02-19 13:29:19 +00:00
parent 464b92d54b
commit 40e11ebe8c
2 changed files with 9 additions and 8 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20070219
--------
main/network.c, main/network.h: fixed player restriction at robot-/coop-games - code cleanup
20070218
--------
cfile/cfile.c: added patch by The_Lion to improve file handling with AltHogDir

View file

@ -2109,14 +2109,14 @@ void network_game_param_poll( int nitems, newmenu_item * menus, int * key, int c
{
#ifndef SHAREWARE
#ifndef ROCKWELL_CODE
// int i;
// for (i = 0; i < 4; i++)
// if (menus[opt_mode + i].value && last_mode != i) { // mode changed?
// last_mode = i;
// MaxNumNetPlayers = (i > 1) ? // robo-anarchy/cooperative
// 4 : 8;
// cur_temp_game->max_numplayers = MaxNumNetPlayers;
// }
int i;
for (i = 0; i < 4; i++)
if (menus[opt_mode + i].value && last_mode != i) { // mode changed?
last_mode = i;
MaxNumNetPlayers = (i > 1) ? // robo-anarchy/cooperative
4 : 8;
cur_temp_game->max_numplayers = MaxNumNetPlayers;
}
if (menus[opt_mode+1].value && !menus[opt_mode+5].value) {
menus[opt_mode+5].value = 1;
menus[opt_mode+5].redraw = 1;