diff options
Diffstat (limited to 'src/message_system.cpp')
-rw-r--r-- | src/message_system.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/message_system.cpp b/src/message_system.cpp index 5abb4b3..08ef799 100644 --- a/src/message_system.cpp +++ b/src/message_system.cpp | |||
@@ -76,12 +76,13 @@ void MessageSystem::hideCutsceneBars() { | |||
76 | barsState_ = BarsState::Closing; | 76 | barsState_ = BarsState::Closing; |
77 | } | 77 | } |
78 | 78 | ||
79 | void MessageSystem::displayMessage(std::string_view msg, SpeakerType speaker) { | 79 | void MessageSystem::displayMessage(std::string_view msg, std::string speakerName, SpeakerType speakerType) { |
80 | if (!(barsState_ == BarsState::Opening || barsState_ == BarsState::Open)) { | 80 | if (!(barsState_ == BarsState::Opening || barsState_ == BarsState::Open)) { |
81 | displayCutsceneBars(); | 81 | displayCutsceneBars(); |
82 | } | 82 | } |
83 | 83 | ||
84 | speaker_ = speaker; | 84 | speaker_ = speakerType; |
85 | speakerName_ = speakerName; | ||
85 | 86 | ||
86 | auto lineChunks = splitStr<std::list<std::string>>(std::string(msg), "\n"); | 87 | auto lineChunks = splitStr<std::list<std::string>>(std::string(msg), "\n"); |
87 | for (const std::string& text : lineChunks) { | 88 | for (const std::string& text : lineChunks) { |