From b875911644402f13894f0bad68536bfde0bc3201 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 20 Nov 2016 02:12:24 +1000 Subject: [PATCH] Fix ClientPreConnect --- qcsrc/lib/_all.inc | 6 ++++++ qcsrc/server/client.qc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/qcsrc/lib/_all.inc b/qcsrc/lib/_all.inc index 6408d6e3f2..65dc080c2c 100644 --- a/qcsrc/lib/_all.inc +++ b/qcsrc/lib/_all.inc @@ -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 diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 3b48e5c1cf..f9c4662c36 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -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", -- 2.39.2