Browse Source

Fix trigger_camera fps dependency. Same as https://github.com/ValveSoftware/halflife/issues/2924.

hl_urbicide
Andrey Akhmichin 4 years ago
parent
commit
6274c601fe
  1. 4
      dlls/triggers.cpp

4
dlls/triggers.cpp

@ -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…
Cancel
Save