aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index a8b96eb..14d3cbb 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -660,9 +660,15 @@ void Courtroom::enter_courtroom(int p_cid)
QString f_char;
if (m_cid == -1)
+ {
+ ao_app->discord->state_spectate();
f_char = "";
+ }
else
+ {
f_char = ao_app->get_char_name(char_list.at(m_cid).name);
+ ao_app->discord->state_character(f_char.toStdString());
+ }
current_char = f_char;