Warning fixes and some random cleanup here and there

This commit is contained in:
Spp
2012-03-07 14:08:30 +01:00
parent e5d23103f3
commit f495e0efe4
123 changed files with 682 additions and 800 deletions

View File

@@ -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);