mirror of https://github.com/FWGS/hlsdk-xash3d
Fix trigger_camera fps dependency. Same as https://github.com/ValveSoftware/halflife/issues/2924.
This commit is contained in:
parent
2c7e07ef49
commit
6274c601fe
|
@ -2318,8 +2318,8 @@ void CTriggerCamera::FollowTarget()
|
||||||
if( dy > 180 )
|
if( dy > 180 )
|
||||||
dy = dy - 360;
|
dy = dy - 360;
|
||||||
|
|
||||||
pev->avelocity.x = dx * 40 * gpGlobals->frametime;
|
pev->avelocity.x = dx * 40 * 0.01f;
|
||||||
pev->avelocity.y = dy * 40 * gpGlobals->frametime;
|
pev->avelocity.y = dy * 40 * 0.01f;
|
||||||
|
|
||||||
if( !( FBitSet( pev->spawnflags, SF_CAMERA_PLAYER_TAKECONTROL ) ) )
|
if( !( FBitSet( pev->spawnflags, SF_CAMERA_PLAYER_TAKECONTROL ) ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue