mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix double 'You' prefix on local emote text
This commit is contained in:
parent
3acb42b363
commit
314c2cabf5
1 changed files with 1 additions and 3 deletions
|
|
@ -627,9 +627,7 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) {
|
|||
if (msg.type == game::ChatType::SYSTEM) {
|
||||
renderTextWithLinks(msg.message, color);
|
||||
} else if (msg.type == game::ChatType::TEXT_EMOTE) {
|
||||
// Local emotes (senderGuid==0) need "You " prefix; incoming already have sender name
|
||||
std::string full = (msg.senderGuid == 0) ? ("You " + msg.message) : msg.message;
|
||||
renderTextWithLinks(full, color);
|
||||
renderTextWithLinks(msg.message, color);
|
||||
} else if (!msg.senderName.empty()) {
|
||||
if (msg.type == game::ChatType::MONSTER_SAY || msg.type == game::ChatType::MONSTER_YELL) {
|
||||
std::string prefix = msg.senderName + " says: ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue