1
0

A few more touch ups

This commit is contained in:
Bill Derouin 2014-01-07 09:49:52 -06:00
parent ede6757f67
commit 1c2eb4a1c0
2 changed files with 2 additions and 12 deletions

View File

@ -383,16 +383,6 @@ void cProtocol172::SendExplosion(double a_BlockX, double a_BlockY, double a_Bloc
void cProtocol172::SendFavicon(void)
{
cPacketizer Pkt(*this, 0x0); // Favicon packet
Pkt.WriteString(cRoot::Get()->GetServer()->GetFaviconData());
}
void cProtocol172::SendGameMode(eGameMode a_GameMode) void cProtocol172::SendGameMode(eGameMode a_GameMode)
{ {
cPacketizer Pkt(*this, 0x2b); // Change Game State packet cPacketizer Pkt(*this, 0x2b); // Change Game State packet
@ -1127,7 +1117,7 @@ void cProtocol172::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
cRoot::Get()->GetServer()->GetDescription().c_str() cRoot::Get()->GetServer()->GetDescription().c_str()
); );
AppendPrintf(Response, "\"favicon\":\"data:image/png;base64,%s\"", AppendPrintf(Response, "\"favicon\":\"data:image/png;base64,%s\"",
cRoot::Get()->GetServer()->GetFaviconData() cRoot::Get()->GetServer()->GetFaviconData().c_str()
); );
Response.append("}"); Response.append("}");

View File

@ -296,7 +296,7 @@ int cServer::GetNumPlayers(void)
AString cServer::GetFaviconData(void) AString cServer::GetFaviconData(void)
{ {
return m_Favicon; return m_FaviconData;
} }