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 <https://forum.dxx-rebirth.com/showthread.php?tid=1017>
This commit is contained in:
parent
0edf08cfbc
commit
07895c086a
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue