*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1263 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-08-19 08:48:35 +00:00
parent 1907d6ecff
commit 7a0ff4397f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ void c2sinfo(playerent *d) // send update to the server
putint(q, (int)(d->vel.y*DVELF));
putint(q, (int)(d->vel.z*DVELF));
// pack rest in 1 int: strafe:2, move:2, onfloor:1, onladder: 1
putint(q, (d->strafe&3) | ((d->move&3)<<2) | (((int)d->onfloor)<<4) | (((int)d->onladder)<<5) );
putuint(q, (d->strafe&3) | ((d->move&3)<<2) | (((int)d->onfloor)<<4) | (((int)d->onladder)<<5) | ((d->lifesequence&1)<<6));
enet_packet_resize(packet, q.length());
sendpackettoserv(0, packet);
+2 -2
View File
@@ -79,9 +79,9 @@ void parsepositions(ucharbuf &p)
vel.x = getint(p)/DVELF;
vel.y = getint(p)/DVELF;
vel.z = getint(p)/DVELF;
int f = getint(p);
int f = getuint(p), seqcolor = (f>>6)&1;
playerent *d = getclient(cn);
if(!d) continue;
if(!d || seqcolor!=(d->lifesequence&1)) continue;
d->o = o;
d->yaw = yaw;
d->pitch = pitch;