From 40e11ebe8c329eecfd1f79e3e438726998838b18 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Mon, 19 Feb 2007 13:29:19 +0000 Subject: [PATCH] fixed player restriction at robot-/coop-games - code cleanup --- dxx-changelog.txt | 1 + main/network.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dxx-changelog.txt b/dxx-changelog.txt index cc2ae294d..5966efecc 100755 --- a/dxx-changelog.txt +++ b/dxx-changelog.txt @@ -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 diff --git a/main/network.c b/main/network.c index b7320f92a..31684b723 100755 --- a/main/network.c +++ b/main/network.c @@ -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;