send foot position over network instead of eye position for better eyeheight handling

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3004 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-14 05:35:47 +00:00
parent f213f43684
commit 1ed4cbdcfc
5 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ void c2sinfo(playerent *d) // send update to the server
putint(q, d->clientnum);
putuint(q, (int)(d->o.x*DMF)); // quantize coordinates to 1/16th of a cube, between 1 and 3 bytes
putuint(q, (int)(d->o.y*DMF));
putuint(q, (int)(d->o.z*DMF));
putuint(q, (int)((d->o.z - d->eyeheight)*DMF));
putuint(q, (int)d->yaw);
putint(q, (int)d->pitch);
putint(q, (int)d->roll);