diff options
author | Tony J. White <tjw@tjw.org> | 2006-12-20 16:27:35 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-12-20 16:27:35 +0000 |
commit | 03038e987001b6019a17fe00df221ac9a9e30e48 (patch) | |
tree | 687710aafe4d8a055122a26aee347aa8bdbe37f3 | |
parent | bddccee834ce56ad997cca5537fa5742a5800d45 (diff) |
* (bug 2903) remove the unlagged 1-server-frame rewind for missile tests
-rw-r--r-- | src/game/g_main.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index fc7d4dd7..4e59e867 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2151,6 +2151,12 @@ void G_RunFrame( int levelTime ) if( !ent->r.linked && ent->neverFree ) continue; + if( ent->s.eType == ET_MISSILE ) + { + G_RunMissile( ent ); + continue; + } + if( ent->s.eType == ET_BUILDABLE ) { G_BuildableThink( ent, msec ); @@ -2193,22 +2199,6 @@ void G_RunFrame( int levelTime ) // save position information for all active clients G_UnlaggedStore( ); - // for missle impacts, move every active client one server frame time back - // to compensate for built-in 50ms lag - G_UnlaggedCalc( level.previousTime, NULL ); - G_UnlaggedOn( NULL, 0.0f ); - for( i = MAX_CLIENTS; i < level.num_entities ; i++) - { - ent = &g_entities[ i ]; - if( !ent->inuse ) - continue; - if( ent->freeAfterEvent ) - continue; - if( ent->s.eType == ET_MISSILE ) - G_RunMissile( ent ); - } - G_UnlaggedOff( ); - end = trap_Milliseconds(); //TA: |