From 42caf62670424ef5232c9c54537476a5255dae27 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Tue, 13 Jul 2010 18:49:47 +0000 Subject: [PATCH] ifdef ACAC git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5363 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/serverchecks.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/src/serverchecks.h b/source/src/serverchecks.h index d0cd7982..40f1a035 100644 --- a/source/src/serverchecks.h +++ b/source/src/serverchecks.h @@ -1,4 +1,7 @@ -// #include "anticheat.h" + +#ifdef ACAC +#include "anticheat.h" +#endif inline float pow2(float x) { @@ -150,7 +153,10 @@ void flagpoints (client *c, int message) if (m_ctf) { distance = sqrt(POW2XY(c->state.o,c->md.flagpos)); if (distance > 200) distance = 200; - /*if ( validflagscore(distance,c) )*/ addpt(c, CTFSCOREPT); +#ifdef ACAC + if ( validflagscore(distance,c) ) +#endif + addpt(c, CTFSCOREPT); } else addpt(c, HTFSCOREPT); break; case FM_KTFSCORE: