anticheat compatibility

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5657 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-08-19 22:43:19 +00:00
parent 01c24f0228
commit 3b09f9ac2e
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -2736,6 +2736,7 @@ void process(ENetPacket *packet, int sender, int chan)
{
int gunselect = getint(p);
if(gunselect<0 || gunselect>=NUMGUNS || gunselect == GUN_CPISTOL) break;
if(!m_demo && !m_coop) checkweapon(type,gunselect);
cl->state.gunselect = gunselect;
QUEUE_MSG;
break;