|
|
@ -66,17 +66,18 @@ network_options ()
|
|
|
|
menu = menu_new ("Network Options", 400, 380);
|
|
|
|
menu = menu_new ("Network Options", 400, 380);
|
|
|
|
menu_create_label (menu, "Max Players", 30, 75, 0, COLOR_brown);
|
|
|
|
menu_create_label (menu, "Max Players", 30, 75, 0, COLOR_brown);
|
|
|
|
menu_create_list (menu, "Players", 150, 55, 55, 70, nrplayerlist, &selnrplayer, 1);
|
|
|
|
menu_create_list (menu, "Players", 150, 55, 55, 70, nrplayerlist, &selnrplayer, 1);
|
|
|
|
menu_create_entry (menu, "Gamename", -1, 150, 300, &bman.gamename, LEN_GAMENAME, MENU_entrytext, 2);
|
|
|
|
menu_create_entry (menu, "Gamename", -1, 150, 300, &bman.gamename, LEN_GAMENAME, MENU_entrytext, 3);
|
|
|
|
menu_create_entry (menu, "UDP Port:", -1, 180, 200, &bman.port, LEN_PORT, MENU_entrytext,3);
|
|
|
|
menu_create_entry (menu, "UDP Port:", -1, 180, 200, &bman.port, LEN_PORT, MENU_entrytext,4);
|
|
|
|
#ifndef _WIN32
|
|
|
|
#ifndef _WIN32
|
|
|
|
menu_create_bool (menu, "IPV6", 260, 60, 100, &net_ai_typ, 4);
|
|
|
|
menu_create_bool (menu, "IPV6", 260, 60, 100, &net_ai_typ, 2);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
menu_create_bool (menu, "Private Game", 20, 220, 150, &bman.passwordenabled, 6);
|
|
|
|
menu_create_bool (menu, "Private Game", 20, 220, 150, &bman.passwordenabled, 6);
|
|
|
|
menu_create_entry (menu, "Password:", 190, 220, 210, &bman.password, LEN_PASSWORD, MENU_entrytext, 7);
|
|
|
|
menu_create_entry (menu, "Password:", 190, 220, 210, &bman.password, LEN_PASSWORD, MENU_entrytext, 7);
|
|
|
|
|
|
|
|
|
|
|
|
menu_create_bool (menu, "Use OpenGameCache", -1, 250, 350, &bman.notifygamemaster, 8);
|
|
|
|
menu_create_bool (menu, "Use OGC", 70, 250, 120, &bman.notifygamemaster, 8);
|
|
|
|
menu_create_entry (menu, "OpenGameCache:", -1, 280, 350, &bman.ogcserver, LEN_SERVERNAME, MENU_entrytext, 9);
|
|
|
|
menu_create_bool (menu, "Broadcast", 250, 250, 120, &bman.broadcast, 9);
|
|
|
|
menu_create_entry (menu, "Local OGC Port", -1, 310, 350, &bman.ogc_port, LEN_PORT, MENU_entrytext, 10);
|
|
|
|
menu_create_entry (menu, "OpenGameCache:", -1, 280, 350, &bman.ogcserver, LEN_SERVERNAME, MENU_entrytext, 10);
|
|
|
|
|
|
|
|
menu_create_entry (menu, "Local OGC Port", -1, 310, 350, &bman.ogc_port, LEN_PORT, MENU_entrytext, 11);
|
|
|
|
menu_create_button (menu, "Ok", -1, 350, 150, 0);
|
|
|
|
menu_create_button (menu, "Ok", -1, 350, 150, 0);
|
|
|
|
menuselect = menu_loop (menu);
|
|
|
|
menuselect = menu_loop (menu);
|
|
|
|
bman.maxplayer = (selnrplayer - &nrplayerlist[0]) + 1;
|
|
|
|
bman.maxplayer = (selnrplayer - &nrplayerlist[0]) + 1;
|
|
|
|