From 89548898889a75dbaff8742b4aa1fa98a8eadbfd Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 5 Jun 2007 00:10:55 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1141 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index bb6a87a7..10ae170b 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -88,13 +88,13 @@ void parsepositions(ucharbuf &p) f >>= 2; d->onfloor = f&1; f >>= 1; - int state = f&7; - if(state==CS_DEAD && d->state!=CS_DEAD) d->lastaction = lastmillis; + int oldstate = d->state, state = f&7; + if(state==CS_DEAD && oldstate!=CS_DEAD) d->lastaction = lastmillis; d->state = state; f >>= 3; d->onladder = f&1; if(!demoplayback) updatepos(d); - if(d->state!=CS_DEAD) updatelagtime(d); + if(oldstate!=CS_DEAD && d->state!=CS_DEAD) updatelagtime(d); break; }