Apply style fix pt3

This commit is contained in:
Antz 2020-01-13 10:14:05 +00:00
parent 1392c131e7
commit d93dbd95fe
191 changed files with 9851 additions and 676 deletions

View file

@ -278,7 +278,9 @@ bool ChatHandler::HandleDebugPlayMovieCommand(char* args)
// #movieid - ID decimal number from Movie.dbc (1st column)
uint32 dwId;
if (!ExtractUInt32(&args, dwId))
{
return false;
}
if (!sMovieStore.LookupEntry(dwId))
{
@ -322,7 +324,9 @@ bool ChatHandler::HandleDebugPlaySoundCommand(char* args)
unit->PlayDistanceSound(dwSoundId, m_session->GetPlayer());
}
else
{ unit->PlayDirectSound(dwSoundId, m_session->GetPlayer()); }
{
unit->PlayDirectSound(dwSoundId, m_session->GetPlayer());
}
PSendSysMessage(LANG_YOU_HEAR_SOUND, dwSoundId);
return true;
@ -395,7 +399,9 @@ bool ChatHandler::HandleDebugGetLootRecipientCommand(char* /*args*/)
target->GetLootRecipientGuid().GetString().c_str(),
target->GetLootGroupRecipientId());
else
{ SendSysMessage("loot recipient: offline "); }
{
SendSysMessage("loot recipient: offline ");
}
return true;
}
@ -440,11 +446,17 @@ bool ChatHandler::HandleDebugGetItemStateCommand(char* args)
state_str = "removed";
}
else if (strncmp(args, "queue", strlen(args)) == 0)
{ list_queue = true; }
{
list_queue = true;
}
else if (strncmp(args, "all", strlen(args)) == 0)
{ check_all = true; }
{
check_all = true;
}
else
{ return false; }
{
return false;
}
Player* player = getSelectedPlayer();
if (!player)
@ -755,7 +767,9 @@ bool ChatHandler::HandleDebugSendLargePacketCommand(char* /*args*/)
bool ChatHandler::HandleDebugSendSetPhaseShiftCommand(char* args)
{
if (!*args)
{
return false;
}
char* m = strtok((char*)args, " ");
char* p = strtok(NULL, " ");
@ -836,15 +850,25 @@ bool ChatHandler::HandleSetValueHelper(Object* target, uint32 field, char* typeS
base = 10;
}
else if (strncmp(typeStr, "int", strlen(typeStr)) == 0)
{ base = 10; }
{
base = 10;
}
else if (strncmp(typeStr, "hex", strlen(typeStr)) == 0)
{ base = 16; }
{
base = 16;
}
else if (strncmp(typeStr, "bit", strlen(typeStr)) == 0)
{ base = 2; }
{
base = 2;
}
else if (strncmp(typeStr, "float", strlen(typeStr)) == 0)
{ base = 0; }
{
base = 0;
}
else
{ return false; }
{
return false;
}
if (base)
{
@ -956,15 +980,25 @@ bool ChatHandler::HandleGetValueHelper(Object* target, uint32 field, char* typeS
base = 10;
}
else if (strncmp(typeStr, "int", strlen(typeStr)) == 0)
{ base = 10; }
{
base = 10;
}
else if (strncmp(typeStr, "hex", strlen(typeStr)) == 0)
{ base = 16; }
{
base = 16;
}
else if (strncmp(typeStr, "bit", strlen(typeStr)) == 0)
{ base = 2; }
{
base = 2;
}
else if (strncmp(typeStr, "float", strlen(typeStr)) == 0)
{ base = 0; }
{
base = 0;
}
else
{ return false; }
{
return false;
}
if (base)
{
@ -1075,15 +1109,25 @@ bool ChatHandler::HandlerDebugModValueHelper(Object* target, uint32 field, char*
type = 1;
}
else if (strncmp(typeStr, "float", strlen(typeStr)) == 0)
{ type = 0; }
{
type = 0;
}
else if (strncmp(typeStr, "|=", strlen("|=") + 1) == 0) // exactly copy
{ type = 2; }
{
type = 2;
}
else if (strncmp(typeStr, "&=", strlen("&=") + 1) == 0) // exactly copy
{ type = 3; }
{
type = 3;
}
else if (strncmp(typeStr, "&=~", strlen("&=~") + 1) == 0) // exactly copy
{ type = 4; }
{
type = 4;
}
else
{ return false; }
{
return false;
}
if (type)
{
@ -1285,9 +1329,13 @@ bool ChatHandler::HandleDebugSpellModsCommand(char* args)
opcode = SMSG_SET_FLAT_SPELL_MODIFIER;
}
else if (strncmp(typeStr, "pct", strlen(typeStr)) == 0)
{ opcode = SMSG_SET_PCT_SPELL_MODIFIER; }
{
opcode = SMSG_SET_PCT_SPELL_MODIFIER;
}
else
{ return false; }
{
return false;
}
uint32 effidx;
if (!ExtractUInt32(&args, effidx) || effidx >= 64 + 32)