Fixed PLI end white, made random mistake late night when I couldn't remember how I did it before
Thanks to FakeTruth git-svn-id: http://mc-server.googlecode.com/svn/trunk@146 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
9e4184ca8d
commit
a5d64ae0ca
@ -24,7 +24,7 @@ bool cPacket_PlayerListItem::Send( cSocket & a_Socket )
|
|||||||
int end = (len <= 16) ? len : 16;
|
int end = (len <= 16) ? len : 16;
|
||||||
m_PlayerName = m_PlayerName.substr(0, end);
|
m_PlayerName = m_PlayerName.substr(0, end);
|
||||||
if (len <= 14)
|
if (len <= 14)
|
||||||
m_PlayerName += cChatColor::MakeColor(cChatColor::White.c_str()[0]);
|
m_PlayerName += cChatColor::White; // mistakes happen when you code late night :P
|
||||||
|
|
||||||
unsigned int TotalSize = c_Size + m_PlayerName.size()*sizeof(short);
|
unsigned int TotalSize = c_Size + m_PlayerName.size()*sizeof(short);
|
||||||
char* Message = new char[TotalSize];
|
char* Message = new char[TotalSize];
|
||||||
|
Loading…
Reference in New Issue
Block a user