diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-09 18:29:17 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-09 18:29:17 -0500 |
commit | 60f10cf1c5e8b0610ebe12d11531030e6c241a42 (patch) | |
tree | b9470e8b49f0eb50ccfe71165af212ce61011df3 | |
parent | 9510e4fbbe817ab62ce014ee50283edd62fa00d9 (diff) | |
download | tanetane-60f10cf1c5e8b0610ebe12d11531030e6c241a42.tar.gz tanetane-60f10cf1c5e8b0610ebe12d11531030e6c241a42.tar.bz2 tanetane-60f10cf1c5e8b0610ebe12d11531030e6c241a42.zip |
Fixed issue with single-line messages
Including the "no problem here" message. Problem was introduced with the \f change.
-rw-r--r-- | src/message_system.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
170 | } | 170 | } |
171 | } | 171 | } |
172 | 172 | ||
173 | if (lines_.empty() || lines_.back() != "\f") { | ||
174 | lines_.push_back("\f"); | ||
175 | } | ||
176 | |||
173 | if (linesToShow_.empty()) { | 177 | if (linesToShow_.empty()) { |
174 | linesToShow_.push_back(MessageLine { .text = lines_.front() }); | 178 | linesToShow_.push_back(MessageLine { .text = lines_.front() }); |
175 | lines_.pop_front(); | 179 | lines_.pop_front(); |