aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-03-21 19:12:18 -0500
committerGitHub <noreply@github.com>2021-03-21 19:12:18 -0500
commit94e55e70a21bd6fb0e2f25d6d5174fddf2c7cb08 (patch)
tree42eb5ca7962af8739184dc5d9cc6405abe89ec8e
parentbddf6c67c2f6822f9f2b02b0c478bc0af71e1e8a (diff)
parent106d9f3097bfbb85008b59d5d56470642a403682 (diff)
Merge pull request #502 from AttorneyOnline/fix/blankpost-queue
Fix blankposting forcing the message queue to sleep up until another message is received
-rw-r--r--src/courtroom.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index fe5f74d1..754208ed 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3231,6 +3231,10 @@ void Courtroom::start_chat_ticking()
ui_vp_chatbox->show();
ui_vp_message->show();
}
+ // If we're not already waiting on the next message, start the timer. We could be overriden if there's an objection planned.
+ int delay = ao_app->stay_time();
+ if (delay > 0 && !text_queue_timer->isActive())
+ text_queue_timer->start(delay);
return;
}