ifdef ACAC

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5363 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-13 18:49:47 +00:00
parent 65447c694c
commit 42caf62670
+8 -2
View File
@@ -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: