Skip to content

Commit

Permalink
Merge pull request #1 from AttorneyOnline/master
Browse files Browse the repository at this point in the history
bring master up to date with upstream
  • Loading branch information
in1tiate authored Mar 6, 2020
2 parents b443389 + 80bf49e commit ba17334
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.pro.autosave
*.pro.user
base_override.h
.DS_Store

Expand Down
2 changes: 1 addition & 1 deletion src/aoblipplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void AOBlipPlayer::set_blips(QString p_sfx)

void AOBlipPlayer::blip_tick()
{
int f_cycle = m_cycle++;
m_cycle++;

if (m_cycle == 5)
m_cycle = 0;
Expand Down
4 changes: 3 additions & 1 deletion src/aocharmovie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix)
apng = false;
QString original_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".gif");
QString alt_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".png");
QString alt_path_still = ao_app->get_character_path(p_char, p_emote + ".png");
QString apng_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".apng");
QString placeholder_path = ao_app->get_theme_path("placeholder.gif");
QString placeholder_default_path = ao_app->get_default_theme_path("placeholder.gif");
Expand All @@ -36,6 +37,8 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix)
gif_path = original_path;
else if (file_exists(alt_path))
gif_path = alt_path;
else if (file_exists(alt_path_still))
gif_path = alt_path_still;
else if (file_exists(placeholder_path))
gif_path = placeholder_path;
else
Expand Down Expand Up @@ -205,7 +208,6 @@ void AOCharMovie::play_pre(QString p_char, QString p_emote, int duration)
m_movie->stop();
m_movie->setFileName(gif_path);
m_movie->jumpToFrame(0);
int real_duration = 0;
play_once = true;
play(p_char, p_emote, "");
}
Expand Down
2 changes: 1 addition & 1 deletion src/aooptionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
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
int a = 0;
if (needs_default_audiodev())
{

Expand All @@ -253,6 +252,7 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
}
#ifdef BASSAUDIO
BASS_DEVICEINFO info;
int a = 0;
for (a = 0; BASS_GetDeviceInfo(a, &info); a++)
{
ui_audio_device_combobox->addItem(info.name);
Expand Down
4 changes: 2 additions & 2 deletions src/networkmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ void NetworkManager::on_srv_lookup()

for (const QDnsServiceRecord &record : srv_records)
{
#ifdef DEBUG_NETWORK
#ifdef DEBUG_NETWORK
qDebug() << "Connecting to " << record.target() << ":" << record.port();
#endif
#endif
ms_socket->connectToHost(record.target(), record.port());
QTime timer;
timer.start();
Expand Down
10 changes: 5 additions & 5 deletions src/packet_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
{
if (courtroom_constructed)
w_courtroom->reset_music_list();
for (int n_element = 0 ; n_element < f_contents.size() ; ++n_element)
{
w_courtroom->append_music(f_contents.at(n_element));
}
w_courtroom->list_music();
for (int n_element = 0 ; n_element < f_contents.size() ; ++n_element)
{
w_courtroom->append_music(f_contents.at(n_element));
}
w_courtroom->list_music();
}
else if (header == "BN")
{
Expand Down

0 comments on commit ba17334

Please sign in to comment.