aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-12-15 10:56:59 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2018-12-15 10:56:59 -0600
commit6d1ea9d81fc02fbc481d93af549003db954aa1f7 (patch)
treedb79ef284b2223daa1bee48056a96a81310945bf
parentf70fd357b4de1383bab13b043eed6fa99e541b84 (diff)
Add big ugly hack to fall back jury/seance backgrounds to witness
-rw-r--r--courtroom.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 9472f79..249cc16 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -2375,12 +2375,14 @@ void Courtroom::set_scene()
f_background = "prohelperstand";
f_desk_image = "prohelperdesk";
}
- else if (f_side == "jur")
+ else if (f_side == "jur" && (file_exists(ao_app->get_background_path("jurystand.png")) ||
+ file_exists(ao_app->get_background_path("jurystand.gif"))))
{
f_background = "jurystand";
f_desk_image = "jurydesk";
}
- else if (f_side == "sea")
+ else if (f_side == "sea" && (file_exists(ao_app->get_background_path("seancestand.png")) ||
+ file_exists(ao_app->get_background_path("seancestand.gif"))))
{
f_background = "seancestand";
f_desk_image = "seancedesk";