*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1260 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-08-19 07:20:21 +00:00
parent e8b9ff144b
commit ba340d2c93
+3 -4
View File
@@ -233,16 +233,15 @@ void zapplayer(playerent *&d)
void otherplayers()
{
loopv(players) if(players[i] && players[i]->type==ENT_PLAYER && players[i]->state==CS_ALIVE)
loopv(players) if(players[i] && players[i]->type==ENT_PLAYER)
{
const int lagtime = players[i]->lastupdate ? lastmillis-players[i]->lastupdate : 0;
if(lagtime>1000)
if(lagtime>1000 && players[i]->state==CS_ALIVE)
{
players[i]->state = CS_LAGGED;
continue;
}
else if(!lagtime || intermission) continue;
moveplayer(players[i], 2, false); // use physics to extrapolate player position
if(lagtime && (players[i]->state==CS_ALIVE || (players[i]->state==CS_DEAD && lastmillis-players[i]->lastpain<2000)) && !intermission) moveplayer(players[i], 2, false); // use physics to extrapolate player position
}
}