Skip to content

Commit

Permalink
Can use sync_guns 2 for framesync sounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raptor007 committed Jul 12, 2017
1 parent 4b96f4b commit 74f4794
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/p_weapon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,8 @@ void PlayWeaponSound( edict_t *ent )
return;

// Synchronize weapon sounds so any framerate sounds like 10fps.
if( (sync_guns->value == 2) && ! FRAMESYNC )
return;
if( sync_guns->value
&& (level.framenum > level.weapon_sound_framenum)
&& (level.framenum < level.weapon_sound_framenum + game.framediv) )
Expand Down

0 comments on commit 74f4794

Please sign in to comment.