From 002551c283916cd378293cc863d7406628f3cfe5 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 14 Nov 2018 15:38:54 +0700 Subject: [PATCH] Add ltime for MOVETYPE_PUSH --- dlls/world.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/world.cpp b/dlls/world.cpp index eb8547b4..40da1a68 100644 --- a/dlls/world.cpp +++ b/dlls/world.cpp @@ -787,8 +787,14 @@ int DispatchPhysicsEntity( edict_t *pEdict ) #if 1 if( g_fPause ) { + if( gpGlobals->frametime > 1 ) + return 1; if( pEdict->v.nextthink > gpGlobals->time ) + { pEdict->v.nextthink += gpGlobals->frametime; + if( pEdict->v.movetype == MOVETYPE_PUSH && pEdict->v.ltime ) + pEdict->v.ltime += gpGlobals->frametime; + } return 1; } #else