From 60f10cf1c5e8b0610ebe12d11531030e6c241a42 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 9 Feb 2021 18:29:17 -0500 Subject: Fixed issue with single-line messages Including the "no problem here" message. Problem was introduced with the \f change. --- src/message_system.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/message_system.cpp') diff --git a/src/message_system.cpp b/src/message_system.cpp index 15d9847..a200abc 100644 --- a/src/message_system.cpp +++ b/src/message_system.cpp @@ -170,6 +170,10 @@ void MessageSystem::displayMessage(std::string_view msg, std::string speakerName } } + if (lines_.empty() || lines_.back() != "\f") { + lines_.push_back("\f"); + } + if (linesToShow_.empty()) { linesToShow_.push_back(MessageLine { .text = lines_.front() }); lines_.pop_front(); -- cgit 1.4.1