From 03038e987001b6019a17fe00df221ac9a9e30e48 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Wed, 20 Dec 2006 16:27:35 +0000 Subject: * (bug 2903) remove the unlagged 1-server-frame rewind for missile tests --- src/game/g_main.c | 22 ++++++---------------- 1 file 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: -- cgit