mirror of https://github.com/FWGS/hlsdk-xash3d
Add ltime for MOVETYPE_PUSH
This commit is contained in:
parent
6b2a8218a9
commit
002551c283
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue