]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cl_main: Don't connect on level change if already connected to local server. Fixes...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 Sep 2020 05:18:02 +0000 (05:18 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 17 Sep 2020 05:18:02 +0000 (05:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12925 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 17b607d623a79ac1c0d0a00bca54fede213fb3e3..6ded36842ef017b744ea36f72aa1de7944761c40 100644 (file)
--- 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);
 }
 
 /*