From: Mario Date: Mon, 2 Feb 2015 06:54:15 +0000 (+1100) Subject: Hide preconnect hook behind an #ifdef X-Git-Tag: xonotic-v0.8.1~134 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=02013c593abe7ccb7c6502148df33b34390d8216;p=xonotic%2Fxonotic-data.pk3dir.git Hide preconnect hook behind an #ifdef --- diff --git a/qcsrc/dpdefs/progsdefs.qc b/qcsrc/dpdefs/progsdefs.qc index 5a360fc21..4e7d60a8a 100644 --- a/qcsrc/dpdefs/progsdefs.qc +++ b/qcsrc/dpdefs/progsdefs.qc @@ -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; diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 5187ed513..5b4d7b29b 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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 /* =============