From: Mario Date: Sat, 19 Nov 2016 16:12:24 +0000 (+1000) Subject: Fix ClientPreConnect X-Git-Tag: xonotic-v0.8.2~427 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b875911644402f13894f0bad68536bfde0bc3201;p=xonotic%2Fxonotic-data.pk3dir.git Fix ClientPreConnect --- diff --git a/qcsrc/lib/_all.inc b/qcsrc/lib/_all.inc index 6408d6e3f..65dc080c2 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 3b48e5c1c..f9c4662c3 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",