clean up and including more anticheats

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5452 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-24 00:09:39 +00:00
parent e50e2eb84b
commit f5d4f78609
3 changed files with 50 additions and 28 deletions
+1 -1
View File
@@ -2844,7 +2844,6 @@ void process(ENetPacket *packet, int sender, int chan)
// loopk(3) shot.shot.from[k] = getint(p)/DMF;
loopk(3) { shot.shot.from[k] = cl->state.o.v[k] + ( k == 2 ? (((cl->f>>7)&1)?2.2f:4.2f) : 0); /*getint(p);*/}
loopk(3) shot.shot.to[k] = getint(p)/DMF;
if(!m_demo && !m_coop) checkshoot(sender, &shot);
int hits = getint(p);
loopk(hits)
{
@@ -2855,6 +2854,7 @@ void process(ENetPacket *packet, int sender, int chan)
hit.hit.info = getint(p);
loopk(3) hit.hit.dir[k] = getint(p)/DNF;
}
if(!m_demo && !m_coop) checkshoot(sender, shot, hits);
break;
}