diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2023-11-21 04:41:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-21 11:41:15 +0100 |
| commit | e690e12ae29a520e869469b52d2b49a78a2a1577 (patch) | |
| tree | 359b30150783e2e83b5e1a9da856d820d397d5c8 /src/courtroom.cpp | |
| parent | a41730739906f248326233a64285ad0b3f8dc80f (diff) | |
Fix zooms with no emote modifier defaulting to 1 (show desk) (#925)
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index ea406287..6786aacc 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -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(); |
