Skip to content

Commit

Permalink
Fix drop FPS for not valid spawn position of object
Browse files Browse the repository at this point in the history
  • Loading branch information
OldSerpskiStalker committed Nov 3, 2023
1 parent 05894e7 commit 6783f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrSound/SoundRender_Emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern float psSoundVEffects;

void CSoundRender_Emitter::set_position(const Fvector &pos)
{
if(source()->channels_num()==1)
if(source()->channels_num() == 1 && _valid(pos))
p_source.position = pos;
else
p_source.position.set(0,0,0);
Expand Down

0 comments on commit 6783f37

Please sign in to comment.