Core: Removed all double (and more) empty lines

This commit is contained in:
Shauren
2011-03-21 10:52:14 +01:00
parent f8162d609b
commit 2f79b0f266
353 changed files with 2 additions and 799 deletions
-1
View File
@@ -298,7 +298,6 @@ VehicleAI::VehicleAI(Creature *c) : CreatureAI(c), m_vehicle(c->GetVehicleKit())
m_DismissTimer = VEHICLE_DISMISS_TIME;
}
//NOTE: VehicleAI::UpdateAI runs even while the vehicle is mounted
void VehicleAI::UpdateAI(const uint32 diff)
{
-2
View File
@@ -35,7 +35,6 @@ GuardAI::GuardAI(Creature* creature) : ScriptedAI(creature), i_victimGuid(0), i_
{
}
bool GuardAI::CanSeeAlways(WorldObject const* obj)
{
if (!obj->isType(TYPEMASK_UNIT))
@@ -139,7 +138,6 @@ void GuardAI::UpdateAI(const uint32 /*diff*/)
}
}
void GuardAI::JustDied(Unit* killer)
{
if (Player* pkiller = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
-1
View File
@@ -34,7 +34,6 @@ void CreatureAI::OnCharmed(bool /*apply*/)
AISpellInfoType * UnitAI::AISpellInfo;
AISpellInfoType * GetAISpellInfo(uint32 i) { return &CreatureAI::AISpellInfo[i]; }
void CreatureAI::Talk(uint8 id, uint64 WhisperGuid)
{
sCreatureTextMgr->SendChat(me, id, WhisperGuid);
@@ -870,14 +870,12 @@ void CreatureEventAI::Reset()
if (m_bEmptyList)
return;
for (CreatureEventAIList::iterator i = m_CreatureEventAIList.begin(); i != m_CreatureEventAIList.end(); ++i)
{
if ((*i).Event.event_type == EVENT_T_RESET)
ProcessEvent(*i);
}
//Reset all events to enabled
for (CreatureEventAIList::iterator i = m_CreatureEventAIList.begin(); i != m_CreatureEventAIList.end(); ++i)
{
@@ -15,7 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "DatabaseEnv.h"
#include "SQLStorage.h"
#include "ObjectMgr.h"
@@ -211,7 +210,6 @@ void SmartAI::EndPath(bool fail)
else
GetScript()->SetPathId(0);
ObjectList* targets = GetScript()->GetTargetList(SMART_ESCORT_TARGETS);
if (targets && mEscortQuestID)
{
@@ -15,7 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "DatabaseEnv.h"
#include "SQLStorage.h"
#include "ObjectMgr.h"
@@ -2472,7 +2471,6 @@ void SmartScript::UpdateAIWhileCharmed(const uint32 diff)
{
}
void SmartScript::DoAction(const int32 param)
{
}
@@ -2513,7 +2511,6 @@ uint32 SmartScript::DoChat(int8 id, uint64 whisperGuid)
}*/
// SmartScript end
Unit* SmartScript::DoSelectLowestHpFriendly(float range, uint32 MinHPDiff)
{
if (!me) return NULL;
@@ -15,7 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "DatabaseEnv.h"
#include "SQLStorage.h"
#include "ObjectMgr.h"
@@ -63,7 +62,6 @@ void SmartWaypointMgr::LoadFromDB()
y = fields[3].GetFloat();
z = fields[4].GetFloat();
WayPoint *wp = new WayPoint(id, x, y, z);
if (last_entry != entry)
@@ -584,7 +582,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder &e)
break;
case SMART_ACTION_SET_EVENT_PHASE:
if (e.action.setEventPhase.phase >= SMART_EVENT_PHASE_MAX)
{
@@ -692,7 +692,6 @@ struct SmartAction
uint32 id;
} taxi;
struct
{
uint32 run;
@@ -762,7 +761,6 @@ struct SmartAction
uint32 id;
} storeTargets;
struct
{
uint32 id;