aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aolayer.cpp10
-rw-r--r--src/courtroom.cpp2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index 2fac58be..e7664950 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -493,6 +493,16 @@ void AOLayer::freeze()
preanim_timer->stop();
}
+void AOLayer::kill()
+{
+ // used for when we want to ensure a file is loaded anew
+ this->stop();
+ this->clear();
+ movie_frames.clear();
+ movie_delays.clear();
+ last_path = "";
+}
+
void CharLayer::movie_ticker()
{
AOLayer::movie_ticker();
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 16ec73e8..76431e5b 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1299,6 +1299,8 @@ void Courtroom::set_background(QString p_background, bool display)
ui_vp_objection->stop();
chat_tick_timer->stop();
ui_vp_evidence_display->reset();
+ ui_vp_background->kill();
+ ui_vp_desk->kill();
set_scene(
QString::number(ao_app->get_desk_mod(current_char, current_emote)),
current_side);