From d3f6da2984db342c0c2a447e8708139aca4e9543 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Fri, 21 Oct 2016 09:16:43 -0400 Subject: [PATCH] enable PXO by default --- src/network/multi_options.cpp | 3 ++- src/playerman/managepilot.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/network/multi_options.cpp b/src/network/multi_options.cpp index fe8d71a..fca0a4b 100644 --- a/src/network/multi_options.cpp +++ b/src/network/multi_options.cpp @@ -243,7 +243,8 @@ void multi_options_read_config() { // set default value for the global multi options memset(&Multi_options_g, 0, sizeof(multi_global_options)); - Multi_options_g.protocol = NET_TCP; + Multi_options_g.protocol = NET_TCP; + Multi_options_g.pxo = 1; // do we have a forced port via commandline or registry? ushort forced_port = (ushort)os_config_read_uint("Network", "ForcePort", 0); diff --git a/src/playerman/managepilot.cpp b/src/playerman/managepilot.cpp index 61bad77..e41d03d 100644 --- a/src/playerman/managepilot.cpp +++ b/src/playerman/managepilot.cpp @@ -909,14 +909,16 @@ int read_pilot_file(const char *callsign, int single, player *p) // plain TCP case NET_TCP: + Multi_options_g.pxo = 0; Multi_options_g.protocol = NET_TCP; break; // in case of IPX, which is deprecated default: + Multi_options_g.pxo = 0; Multi_options_g.protocol = NET_TCP; break; - } + } // restore wingman status used by red alert missions red_alert_read_wingman_status(file, Player_file_version); -- 2.39.2