warning fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6248 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2011-04-14 15:24:11 +00:00
parent 67392bd0fc
commit a4b83ef2ba
7 changed files with 8 additions and 17 deletions
+3 -3
View File
@@ -118,7 +118,7 @@ void parsepositions(ucharbuf &p)
int cn, f, g;
vec o, vel;
float yaw, pitch, roll = 0;
bool scoping, shoot;
bool scoping;//, shoot;
if(type == SV_POSC)
{
bitbuf<ucharbuf> q(p);
@@ -146,7 +146,7 @@ void parsepositions(ucharbuf &p)
if(negz) z = -z;
o.z = z / DMF;
scoping = ( q.getbits(1) ? true : false );
shoot = ( q.getbits(1) ? true : false );
q.getbits(1);//shoot = ( q.getbits(1) ? true : false );
}
else
{
@@ -162,7 +162,7 @@ void parsepositions(ucharbuf &p)
if ((g>>1) & 1) vel.y = getint(p)/DVELF; else vel.y = 0;
if ((g>>2) & 1) vel.z = getint(p)/DVELF; else vel.z = 0;
scoping = ( (g>>4) & 1 ? true : false );
shoot = ( (g>>5) & 1 ? true : false ); // we are not using this yet
//shoot = ( (g>>5) & 1 ? true : false ); // we are not using this yet
f = getuint(p);
}
int seqcolor = (f>>6)&1;