From c60fcaf58b90e18a376f6f285bf08b4a56439e78 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Thu, 17 Sep 2020 05:18:02 +0000 Subject: [PATCH] cl_main: Don't connect on level change if already connected to local server. Fixes Quake inventory not carrying between levels git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12925 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cl_main.c b/cl_main.c index 17b607d6..6ded3684 100644 --- a/cl_main.c +++ b/cl_main.c @@ -571,7 +571,8 @@ void CL_EstablishConnection(const char *address, int firstarg) static void CL_EstablishConnection_Local(void) { - CL_EstablishConnection("local:1", -2); + if(cls.state == ca_disconnected) + CL_EstablishConnection("local:1", -2); } /* -- 2.39.2