]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide preconnect hook behind an #ifdef
authorMario <zacjardine@y7mail.com>
Mon, 2 Feb 2015 06:54:15 +0000 (17:54 +1100)
committerMario <zacjardine@y7mail.com>
Mon, 2 Feb 2015 06:54:15 +0000 (17:54 +1100)
qcsrc/dpdefs/progsdefs.qc
qcsrc/server/cl_client.qc

index 5a360fc210df0b7e6899858542d920e7c44ba801..4e7d60a8a50790667929158f400d5cd363f0257b 100644 (file)
@@ -73,7 +73,9 @@ void()                PlayerPreThink;
 void()                 PlayerPostThink;
 
 void()         ClientKill;
+#ifdef DP_EXT_PRECONNECT
 void()         ClientPreConnect;
+#endif
 void()         ClientConnect;
 void()                 PutClientInServer;              // call after setting the parm1... parms
 void()         ClientDisconnect;
index 5187ed5133aafba949f009b9c856753cb4f6db4a..5b4d7b29b8ca8ec4c43d48239d871cfa0e955c47 100644 (file)
@@ -990,6 +990,7 @@ float PlayerInIDList(entity p, string idlist)
        return 0;
 }
 
+#ifdef DP_EXT_PRECONNECT
 /*
 =============
 ClientPreConnect
@@ -1008,6 +1009,7 @@ void ClientPreConnect (void)
                ));
        }
 }
+#endif
 
 /*
 =============