1
0

Fixed players custom name in 1.8

This commit is contained in:
Howaner
2014-09-26 17:37:19 +02:00
parent 749c6092d3
commit d83d6456e8
14 changed files with 30 additions and 66 deletions

View File

@@ -838,23 +838,11 @@ void cProtocol172::SendPlayerListUpdatePing(const cPlayer & a_Player)
void cProtocol172::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_OldListName)
void cProtocol172::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_CustomName)
{
ASSERT(m_State == 3); // In game mode?
if (a_OldListName == a_Player.GetPlayerListName())
{
return;
}
// Remove the old name from the tablist:
{
cPacketizer Pkt(*this, 0x38);
Pkt.WriteString(a_OldListName);
Pkt.WriteBool(false);
Pkt.WriteShort(0);
}
SendPlayerListAddPlayer(a_Player);
// Not implemented in this protocol version
UNUSED(a_Player);
UNUSED(a_CustomName);
}