[Styling] Minor code styling changes
This commit is contained in:
parent
507fb517c9
commit
7c4c25837b
@ -1336,10 +1336,12 @@ void ChatHandler::ExecuteCommand(const char* text)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ChatCommand* showCommand = (strlen(command->Name) == 0 && parentCommand ? parentCommand : command))
|
if (ChatCommand* showCommand = (strlen(command->Name) == 0 && parentCommand ? parentCommand : command))
|
||||||
|
{
|
||||||
if (ChatCommand* childs = showCommand->ChildCommands)
|
if (ChatCommand* childs = showCommand->ChildCommands)
|
||||||
{
|
{
|
||||||
ShowHelpForSubCommands(childs, showCommand->Name);
|
ShowHelpForSubCommands(childs, showCommand->Name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SetSentErrorMessage(true);
|
SetSentErrorMessage(true);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "ObjectMgr.h"
|
#include "ObjectMgr.h"
|
||||||
#include "ProgressBar.h"
|
#include "ProgressBar.h"
|
||||||
|
|
||||||
class ChatCommand; // Forward declaration of
|
class ChatCommand; // Forward declaration of
|
||||||
|
|
||||||
INSTANTIATE_SINGLETON_1(CommandMgr);
|
INSTANTIATE_SINGLETON_1(CommandMgr);
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ void CommandMgr::GetCommandHelpLocaleString(uint32 commandId, int32 loc_idx, std
|
|||||||
if (namePtr && il->HelpText.size() > size_t(loc_idx) && !il->HelpText[loc_idx].empty())
|
if (namePtr && il->HelpText.size() > size_t(loc_idx) && !il->HelpText[loc_idx].empty())
|
||||||
{
|
{
|
||||||
*namePtr = il->HelpText[loc_idx];
|
*namePtr = il->HelpText[loc_idx];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user