]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix ClientPreConnect
authorMario <mario@smbclan.net>
Sat, 19 Nov 2016 16:12:24 +0000 (02:12 +1000)
committerMario <mario@smbclan.net>
Sat, 19 Nov 2016 16:12:24 +0000 (02:12 +1000)
qcsrc/lib/_all.inc
qcsrc/server/client.qc

index 6408d6e3f2502aceebbe720c3151ccd8576dd9c2..65dc080c2ca7a103779918b04ad3cabb25718e81 100644 (file)
@@ -183,6 +183,12 @@ void make_safe_for_remove(entity this);
        void SetChangeParms() { ENGINE_EVENT(); if (_SetChangeParms) _SetChangeParms(this); }
        #define SetChangeParms _SetChangeParms
 
+#ifdef DP_EXT_PRECONNECT
+       void _ClientPreConnect(entity this);
+       void ClientPreConnect() { ENGINE_EVENT(); if (_ClientPreConnect) _ClientPreConnect(this); }
+       #define ClientPreConnect _ClientPreConnect
+#endif
+
        void _ClientConnect(entity this);
        void ClientConnect() { ENGINE_EVENT(); if (_ClientConnect) _ClientConnect(this); }
        #define ClientConnect _ClientConnect
index 3b48e5c1cfa38c7270cd43adc0b44171176c6809..f9c4662c366f11c5a7be7829e2e92ede2958c0e3 100644 (file)
@@ -1050,8 +1050,8 @@ ClientPreConnect
 Called once (not at each match start) when a client begins a connection to the server
 =============
 */
-void ClientPreConnect ()
-{ENGINE_EVENT();
+void ClientPreConnect(entity this)
+{
        if(autocvar_sv_eventlog)
        {
                GameLogEcho(sprintf(":connect:%d:%d:%s",