Add ltime for MOVETYPE_PUSH

This commit is contained in:
mittorn 2018-11-14 15:38:54 +07:00
parent 6b2a8218a9
commit 002551c283
1 changed files with 6 additions and 0 deletions

View File

@ -787,8 +787,14 @@ int DispatchPhysicsEntity( edict_t *pEdict )
#if 1 #if 1
if( g_fPause ) if( g_fPause )
{ {
if( gpGlobals->frametime > 1 )
return 1;
if( pEdict->v.nextthink > gpGlobals->time ) if( pEdict->v.nextthink > gpGlobals->time )
{
pEdict->v.nextthink += gpGlobals->frametime; pEdict->v.nextthink += gpGlobals->frametime;
if( pEdict->v.movetype == MOVETYPE_PUSH && pEdict->v.ltime )
pEdict->v.ltime += gpGlobals->frametime;
}
return 1; return 1;
} }
#else #else