aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2023-11-27 19:24:24 -0600
committerGitHub <noreply@github.com>2023-11-27 19:24:24 -0600
commit4d009ea33310ee259e59200be67fd393268f2e94 (patch)
tree79c446d735ee8f914c646c783f3ac5933ad400b2 /src/courtroom.cpp
parentfaf67b87cd3de53f103bfdd08b66808093e1a849 (diff)
parent0729b917b4cb3c0672c80ee9585a1019b2464e89 (diff)
Merge branch 'master' into fix-option-scaling
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 65c5e1a..6786aac 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -900,7 +900,7 @@ void Courtroom::set_widgets()
tr("Choose an effect to play on your next spoken message.\n"
"The effects are defined in your theme/effects/effects.ini. Your "
"character can define custom effects by\n"
- "char.ini [Options] category, effects = 'miscname' where it referes "
+ "char.ini [Options] category, effects = 'miscname' where it refers "
"to misc/<miscname>/effects.ini to read the effects."));
// Todo: recode this entire fucking system with these dumbass goddamn ini's
// why is everything so specifically coded for all these purposes is ABSTRACT
@@ -1830,6 +1830,8 @@ void Courtroom::on_chat_return_pressed()
QStringList packet_contents;
QString f_side;
+ // have to fetch this early for a workaround. i hate this system, but i am stuck with it for now
+ int f_emote_mod = ao_app->get_emote_mod(current_char, current_emote);
if (current_side == "")
f_side = ao_app->get_char_side(current_char);
@@ -1846,14 +1848,15 @@ void Courtroom::on_chat_return_pressed()
else if (f_desk_mod == DESK_EMOTE_ONLY_EX || f_desk_mod == DESK_EMOTE_ONLY)
f_desk_mod = DESK_SHOW;
}
- if (f_desk_mod == -1)
+ if (f_desk_mod == -1 && (f_emote_mod == 5 || f_emote_mod == 6)) // workaround for inis that broke after deprecating "chat"
+ f_desk_mod = DESK_HIDE;
+ else if (f_desk_mod == -1)
f_desk_mod = DESK_SHOW;
}
packet_contents.append(QString::number(f_desk_mod));
QString f_pre = ao_app->get_pre_emote(current_char, current_emote);
- int f_emote_mod = ao_app->get_emote_mod(current_char, current_emote);
QString f_sfx = "1";
int f_sfx_delay = get_char_sfx_delay();