summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-09 18:29:17 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-09 18:29:17 -0500
commit60f10cf1c5e8b0610ebe12d11531030e6c241a42 (patch)
treeb9470e8b49f0eb50ccfe71165af212ce61011df3 /src
parent9510e4fbbe817ab62ce014ee50283edd62fa00d9 (diff)
downloadtanetane-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.
Diffstat (limited to 'src')
-rw-r--r--src/message_system.cpp4
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();