aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-10-06 13:27:11 +0300
committerCrystalwarrior <varsash@gmail.com>2019-10-06 13:27:11 +0300
commit85f33e13c70a523df6554f0983e84777266563e4 (patch)
treec43d418b389fac41c8e42769ec7c8354e4c8a741 /src/courtroom.cpp
parent8ab5a3a6b27376fb7e417ce760cbd7bf827a1138 (diff)
Fix some edge cases where the AOChar qlabel is moved around in weird ways (reload theme still puts qlabel at 0,0 without centering)
Fix a full message of speed 0 not properly displaying itself
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 0cf5a32c..1145b349 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2605,7 +2605,7 @@ void Courtroom::chat_tick()
next_character_is_not_special = false;
}
- if (formatting_char || (message_display_speed[current_display_speed] <= 0 && tick_pos < f_message.size()))
+ if ((message_display_speed[current_display_speed] <= 0 && tick_pos < f_message.size()-1) || formatting_char)
{
chat_tick_timer->start(0); //Don't bother rendering anything out as we're doing the SPEED. (there's latency otherwise)
if (!formatting_char || f_character == "n")