*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1265 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-08-19 09:38:59 +00:00
parent a5bfa30817
commit 6b308c415b
5 changed files with 9 additions and 10 deletions
+3 -4
View File
@@ -53,7 +53,7 @@ void updatelagtime(playerent *d)
int lagtime = lastmillis-d->lastupdate;
if(lagtime)
{
if(d->lastupdate) d->plag = (d->plag*5+lagtime)/6;
if(d->state!=CS_SPAWNING) d->plag = (d->plag*5+lagtime)/6;
d->lastupdate = lastmillis;
}
}
@@ -96,7 +96,7 @@ void parsepositions(ucharbuf &p)
d->onladder = f&1;
updatepos(d);
updatelagtime(d);
if(d->state==CS_LAGGED) d->state = CS_ALIVE;
if(d->state==CS_LAGGED || d->state==CS_SPAWNING) d->state = CS_ALIVE;
break;
}
@@ -251,8 +251,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
if(!d) break;
d->lifesequence = ls;
d->gunselect = gunselect;
d->state = CS_ALIVE;
d->lastupdate = 0;
d->state = CS_SPAWNING;
break;
}