sfx glitch
This commit is contained in:
		
							parent
							
								
									bdde8822f4
								
							
						
					
					
						commit
						44d433d941
					
				@ -79,11 +79,14 @@ void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout)
 | 
			
		||||
  else
 | 
			
		||||
    f_path = sound_path;
 | 
			
		||||
 | 
			
		||||
  if (file_exists(f_path)) //if its missing, it will glitch out
 | 
			
		||||
  {
 | 
			
		||||
  m_sfx.setSource(QUrl::fromLocalFile(f_path));
 | 
			
		||||
 | 
			
		||||
  set_volume(m_volume);
 | 
			
		||||
 | 
			
		||||
  m_sfx.play();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void AOSfxPlayer::stop()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user