mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Warning fixes and some random cleanup here and there
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
||||
{ "cinematic", SEC_MODERATOR, false, &HandleDebugPlayCinematicCommand, "", NULL },
|
||||
{ "movie", SEC_MODERATOR, false, &HandleDebugPlayMovieCommand, "", NULL },
|
||||
{ "sound", SEC_MODERATOR, false, &HandleDebugPlaySoundCommand, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
static ChatCommand debugSendCommandTable[] =
|
||||
{
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
{ "sellerror", SEC_ADMINISTRATOR, false, &HandleDebugSendSellErrorCommand, "", NULL },
|
||||
{ "setphaseshift", SEC_ADMINISTRATOR, false, &HandleDebugSendSetPhaseShiftCommand, "", NULL },
|
||||
{ "spellfail", SEC_ADMINISTRATOR, false, &HandleDebugSendSpellFailCommand, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
static ChatCommand debugCommandTable[] =
|
||||
{
|
||||
@@ -90,12 +90,12 @@ public:
|
||||
{ "areatriggers", SEC_ADMINISTRATOR, false, &HandleDebugAreaTriggersCommand, "", NULL },
|
||||
{ "los", SEC_MODERATOR, false, &HandleDebugLoSCommand, "", NULL },
|
||||
{ "moveflags", SEC_ADMINISTRATOR, false, &HandleDebugMoveflagsCommand, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
static ChatCommand commandTable[] =
|
||||
{
|
||||
{ "debug", SEC_MODERATOR, true, NULL, "", debugCommandTable },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
@@ -1198,7 +1198,7 @@ public:
|
||||
int currentValue = (int)handler->GetSession()->GetPlayer()->GetUInt32Value(opcode);
|
||||
|
||||
currentValue += value;
|
||||
handler->GetSession()->GetPlayer()->SetUInt32Value(opcode , (uint32)currentValue);
|
||||
handler->GetSession()->GetPlayer()->SetUInt32Value(opcode, (uint32)currentValue);
|
||||
|
||||
handler->PSendSysMessage(LANG_CHANGE_32BIT_FIELD, opcode, currentValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user