[c12562] Cleanup Style

This commit is contained in:
Dramacydal 2013-05-31 09:27:56 +01:00 committed by Antz
parent d988eb4038
commit bf5c6b1ddd
19 changed files with 3432 additions and 1071 deletions

View file

@ -780,7 +780,7 @@ void ScriptMgr::LoadCreatureDeathScripts()
LoadScripts(sCreatureDeathScripts, "dbscripts_on_creature_death");
// check ids
for(ScriptMapMap::const_iterator itr = sCreatureDeathScripts.second.begin(); itr != sCreatureDeathScripts.second.end(); ++itr)
for (ScriptMapMap::const_iterator itr = sCreatureDeathScripts.second.begin(); itr != sCreatureDeathScripts.second.end(); ++itr)
{
if (!sObjectMgr.GetCreatureTemplate(itr->first))
sLog.outErrorDb("Table `dbscripts_on_creature_death` has not existing creature (Entry: %u) as script id", itr->first);
@ -1667,12 +1667,12 @@ bool ScriptAction::HandleScriptStep()
if (result) // Terminate further steps of this script
{
if (m_script->textId[0] && !LogIfNotCreature(pSource))
{
Creature* cSource = static_cast<Creature*>(pSource);
if (cSource->GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE)
(static_cast<WaypointMovementGenerator<Creature>* >(cSource->GetMotionMaster()->top()))->AddToWaypointPauseTime(m_script->textId[0]);
}
if (m_script->textId[0] && !LogIfNotCreature(pSource))
{
Creature* cSource = static_cast<Creature*>(pSource);
if (cSource->GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE)
(static_cast<WaypointMovementGenerator<Creature>* >(cSource->GetMotionMaster()->top()))->AddToWaypointPauseTime(m_script->textId[0]);
}
return true;
}