1
0

Minor style improvements for the merged PR.

This commit is contained in:
Mattes D 2014-01-23 14:14:33 +01:00
parent 0526ed327c
commit 97ee3340e3

View File

@ -183,7 +183,7 @@ void cCommandBlockEntity::SaveToJson(Json::Value & a_Value)
void cCommandBlockEntity::Execute() void cCommandBlockEntity::Execute()
{ {
if (m_World) if (m_World != NULL)
{ {
if (!m_World->AreCommandBlocksEnabled()) if (!m_World->AreCommandBlocksEnabled())
{ {
@ -194,10 +194,10 @@ void cCommandBlockEntity::Execute()
class CommandBlockOutCb : class CommandBlockOutCb :
public cCommandOutputCallback public cCommandOutputCallback
{ {
cCommandBlockEntity* m_CmdBlock; cCommandBlockEntity * m_CmdBlock;
public: public:
CommandBlockOutCb(cCommandBlockEntity* a_CmdBlock) : m_CmdBlock(a_CmdBlock) {} CommandBlockOutCb(cCommandBlockEntity * a_CmdBlock) : m_CmdBlock(a_CmdBlock) {}
virtual void Out(const AString & a_Text) virtual void Out(const AString & a_Text)
{ {
@ -208,7 +208,7 @@ void cCommandBlockEntity::Execute()
LOGD("cCommandBlockEntity: Executing command %s", m_Command.c_str()); LOGD("cCommandBlockEntity: Executing command %s", m_Command.c_str());
cServer* Server = cRoot::Get()->GetServer(); cServer * Server = cRoot::Get()->GetServer();
Server->ExecuteConsoleCommand(m_Command, CmdBlockOutCb); Server->ExecuteConsoleCommand(m_Command, CmdBlockOutCb);