local player movement interpolation

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2166 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-09 20:36:22 +00:00
parent 590650e2de
commit 15c5aa8f67
10 changed files with 91 additions and 34 deletions
+6 -1
View File
@@ -99,7 +99,12 @@ void parsepositions(ucharbuf &p)
updatepos(d);
updatelagtime(d);
extern int smoothmove, smoothdist;
if(smoothmove && d->smoothmillis>=0 && oldpos.dist(d->o) < smoothdist)
if(d->state==CS_DEAD)
{
d->resetinterp();
d->smoothmillis = 0;
}
else if(smoothmove && d->smoothmillis>=0 && oldpos.dist(d->o) < smoothdist)
{
d->newpos = d->o;
d->newyaw = d->yaw;