From bfd533ab5469c1c5998ee823cd861968f4ce4ef4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Feb 2016 01:10:55 +0300 Subject: Show also last seen in memory nick for invisible players chat messages (tmwa) --- src/net/tmwa/chatrecv.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net') diff --git a/src/net/tmwa/chatrecv.cpp b/src/net/tmwa/chatrecv.cpp index 27ca74a41..f4bb3725d 100644 --- a/src/net/tmwa/chatrecv.cpp +++ b/src/net/tmwa/chatrecv.cpp @@ -314,7 +314,12 @@ void ChatRecv::processBeingChat(Net::MessageIn &msg) if (being) sender_name = being->getName(); if (sender_name.empty()) + { sender_name = "?" + toString(CAST_S32(beingId)); + const std::string name = actorManager->getSeenPlayerById(beingId); + if (!name.empty()) + sender_name.append(" ").append(name); + } } else if (being && sender_name != being->getName() && -- cgit v1.2.3-70-g09d2