reduce compact pos packet size by two more bit

This commit is contained in:
ac-stef
2017-06-27 15:15:25 +02:00
parent 94d0203bc6
commit 0b44cf1c9c
6 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -459,9 +459,8 @@ void c2sinfo(playerent *d) // send update to the server
dz >= -8 && dz <= 7)
{ // compact POS packet
bitbuf<packetbuf> b(q);
putint(q, SV_POSC);
putint(q, SV_POSC + usefactor - 7);
b.putbits(5, cn);
b.putbits(2, usefactor - 7);
b.putbits(usefactor + 4, x);
b.putbits(usefactor + 4, y);
b.putbits(YAWBITS, ya);