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 5a360fc..4e7d60a 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 5187ed5..5b4d7b2 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
 
 /*
 =============