fix compiler warnings for unused vars
This commit is contained in:
		
							parent
							
								
									8c93cce0be
								
							
						
					
					
						commit
						27a101d010
					
				@ -23,7 +23,7 @@ void AOBlipPlayer::set_blips(QString p_sfx)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void AOBlipPlayer::blip_tick()
 | 
					void AOBlipPlayer::blip_tick()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  int f_cycle = m_cycle++;
 | 
					  m_cycle++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (m_cycle == 5)
 | 
					  if (m_cycle == 5)
 | 
				
			||||||
    m_cycle = 0;
 | 
					    m_cycle = 0;
 | 
				
			||||||
@ -70,7 +70,7 @@ void AOBlipPlayer::set_blips(QString p_sfx)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void AOBlipPlayer::blip_tick()
 | 
					void AOBlipPlayer::blip_tick()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  int f_cycle = m_cycle++;
 | 
					  m_cycle++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (m_cycle == 5)
 | 
					  if (m_cycle == 5)
 | 
				
			||||||
    m_cycle = 0;
 | 
					    m_cycle = 0;
 | 
				
			||||||
 | 
				
			|||||||
@ -208,7 +208,6 @@ void AOCharMovie::play_pre(QString p_char, QString p_emote, int duration)
 | 
				
			|||||||
  m_movie->stop();
 | 
					  m_movie->stop();
 | 
				
			||||||
  m_movie->setFileName(gif_path);
 | 
					  m_movie->setFileName(gif_path);
 | 
				
			||||||
  m_movie->jumpToFrame(0);
 | 
					  m_movie->jumpToFrame(0);
 | 
				
			||||||
  int real_duration = 0;
 | 
					 | 
				
			||||||
  play_once = true;
 | 
					  play_once = true;
 | 
				
			||||||
  play(p_char, p_emote, "");
 | 
					  play(p_char, p_emote, "");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -244,7 +244,6 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
 | 
				
			|||||||
    ui_audio_device_combobox = new QComboBox(ui_audio_widget);
 | 
					    ui_audio_device_combobox = new QComboBox(ui_audio_widget);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Let's fill out the combobox with the available audio devices. Or don't if there is no audio
 | 
					    // Let's fill out the combobox with the available audio devices. Or don't if there is no audio
 | 
				
			||||||
    int a = 0;
 | 
					 | 
				
			||||||
    if (needs_default_audiodev())
 | 
					    if (needs_default_audiodev())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -253,6 +252,7 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    #ifdef BASSAUDIO
 | 
					    #ifdef BASSAUDIO
 | 
				
			||||||
    BASS_DEVICEINFO info;
 | 
					    BASS_DEVICEINFO info;
 | 
				
			||||||
 | 
					    int a = 0;
 | 
				
			||||||
    for (a = 0; BASS_GetDeviceInfo(a, &info); a++)
 | 
					    for (a = 0; BASS_GetDeviceInfo(a, &info); a++)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        ui_audio_device_combobox->addItem(info.name);
 | 
					        ui_audio_device_combobox->addItem(info.name);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user