From ca6b1030bed1a3f8ab8363c2ce89bd0acf432490 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Thu, 16 Feb 2017 01:33:36 +0100 Subject: [PATCH] removing debug statements --- aocharmovie.cpp | 6 +++++- courtroom.cpp | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/aocharmovie.cpp b/aocharmovie.cpp index 5a455c7..d4b4214 100644 --- a/aocharmovie.cpp +++ b/aocharmovie.cpp @@ -26,16 +26,20 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix) { QString original_path = ao_app->get_character_path(p_char) + emote_prefix + p_emote.toLower() + ".gif"; QString placeholder_path = ao_app->get_theme_path() + "placeholder.gif"; + QString placeholder_default_path = ao_app->get_default_theme_path() + "placeholder.gif"; QString gif_path; if (file_exists(original_path)) gif_path = original_path; - else + else if (file_exists(placeholder_path)) gif_path = placeholder_path; + else + gif_path = placeholder_default_path; m_movie->stop(); this->clear(); + qDebug() << "gif_path: " << gif_path; m_movie->setFileName(gif_path); if (m_flipped) diff --git a/courtroom.cpp b/courtroom.cpp index 8fd3138..78ddd9d 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -1010,7 +1010,6 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) return; text_state = 0; - qDebug() << "anim_state set to 0 in handle_chatmessage"; anim_state = 0; chatmessage_is_empty = m_chatmessage[MESSAGE] == " " || m_chatmessage[MESSAGE] == ""; @@ -1076,7 +1075,6 @@ void Courtroom::objection_done() void Courtroom::handle_chatmessage_2() { - qDebug() << "handle_chatmessage_2 called"; ui_vp_speedlines->stop(); ui_vp_player_char->stop(); @@ -1230,7 +1228,6 @@ void Courtroom::play_preanim() void Courtroom::preanim_done() { - qDebug() << "preanim_done called"; handle_chatmessage_3(); }