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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user