From 07895c086abeb1d341ee5a2f0667ebbdb48c336a Mon Sep 17 00:00:00 2001 From: Kp Date: Thu, 14 Dec 2017 04:41:35 +0000 Subject: [PATCH] Enforce anarchy-only flag for D1 hengyn45 reports that D1 improperly allows cooperative games on anarchy only maps. D1 seems not to have implemented this for a very long time, if ever, although the code existed in commented out form. When the trees were combined, the commented out form was treated as blank, so the restriction was placed inside a #if-d2 guard. There is no reason to make this D2-only. Remove the guard so that D1 enforces anarchy-only. Reported-by: hengyn45 --- similar/main/net_udp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/similar/main/net_udp.cpp b/similar/main/net_udp.cpp index 71df3869b..5d267390f 100644 --- a/similar/main/net_udp.cpp +++ b/similar/main/net_udp.cpp @@ -3770,7 +3770,6 @@ static int net_udp_game_param_handler( newmenu *menu,const d_event &event, param #endif else if( menus[opt->bounty].value ) Netgame.gamemode = NETGAME_BOUNTY; -#if defined(DXX_BUILD_DESCENT_II) else if (ANARCHY_ONLY_MISSION) { int i = 0; nm_messagebox(NULL, 1, TXT_OK, TXT_ANARCHY_ONLY_MISSION); @@ -3779,7 +3778,6 @@ static int net_udp_game_param_handler( newmenu *menu,const d_event &event, param menus[opt->anarchy].value = 1; return 0; } -#endif else if ( menus[opt->robot_anarchy].value ) Netgame.gamemode = NETGAME_ROBOT_ANARCHY; else if ( menus[opt->coop].value )