From 4e29a4b8aa728c1aa65b0686f82ac441d54af780 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 2 Feb 2020 18:35:30 +0000 Subject: [PATCH] Single-player: Use loopback instead of TCP Previously, single-player games initialized a TCP connection! Changes this to loopback. Refs #555 --- Source/multi.cpp | 2 +- enums.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/multi.cpp b/Source/multi.cpp index 6b46f03df..8800c33a2 100644 --- a/Source/multi.cpp +++ b/Source/multi.cpp @@ -784,7 +784,7 @@ BOOL multi_init_single(_SNETPROGRAMDATA *client_info, _SNETPLAYERDATA *user_info { int unused; - if (!SNetInitializeProvider(0, client_info, user_info, ui_info, &fileinfo)) { + if (!SNetInitializeProvider(SELCONN_LOOPBACK, client_info, user_info, ui_info, &fileinfo)) { SErrGetLastError(); return FALSE; } diff --git a/enums.h b/enums.h index a2ebd3e21..2ed540b59 100644 --- a/enums.h +++ b/enums.h @@ -2920,11 +2920,11 @@ typedef enum dlrg_flag { } dlrg_flag; typedef enum conn_type { + SELCONN_LOOPBACK = 0, #ifndef NONET SELCONN_TCP, #ifdef BUGGY SELCONN_UDP, #endif #endif - SELCONN_LOOPBACK, } conn_type;