From: cloudwalk Date: Thu, 17 Sep 2020 05:18:02 +0000 (+0000) Subject: cl_main: Don't connect on level change if already connected to local server. Fixes... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c60fcaf58b90e18a376f6f285bf08b4a56439e78;p=xonotic%2Fdarkplaces.git 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 --- 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); } /*