Core: Clean up whitespace and tabs

This commit is contained in:
click
2011-05-09 10:59:54 +02:00
parent 1865511e21
commit 2717129d0d
7 changed files with 10 additions and 10 deletions

View File

@@ -775,7 +775,7 @@ bool AuctionEntry::LoadFromDB(Field* fields)
void AuctionHouseMgr::DeleteExpiredAuctionsAtStartup()
{
// Deletes expired auctions. Should be called at server start before loading auctions.
// DO NOT USE after auctions are already loaded since this deletes from the DB
// and assumes the auctions HAVE NOT been loaded into a list or AuctionEntryMap yet

View File

@@ -83,7 +83,7 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
uint64 guid = 0;
if (Player *player = sObjectMgr->GetPlayer(name.c_str()))
guid = player->GetGUID();
else
else
guid = sObjectMgr->GetPlayerGUIDByName(name);
// Target must exist
if (!guid)

View File

@@ -153,7 +153,7 @@ public:
SkillLineAbilityEntry const *entry = sSkillLineAbilityStore.LookupEntry(i);
if (!entry)
continue;
SpellEntry const *spellInfo = sSpellStore.LookupEntry(entry->spellId);
if (!spellInfo)
continue;

View File

@@ -697,13 +697,13 @@ public:
handler->SetSentErrorMessage(true);
return false;
}
if (target->GetTypeId()==TYPEID_PLAYER)
{
// check online security
if (handler->HasLowerSecurity((Player*)target, 0))
return false;
handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink((Player*)target).c_str());
if (handler->needReportToTarget((Player*)target))
(ChatHandler((Player*)target)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale);

View File

@@ -64,7 +64,7 @@ class OrientationCheck : public std::unary_function<Unit*, bool>
{
return !unit->isInFront(caster, 40.0f, 2.5f);
}
private:
Unit* caster;
};
@@ -80,14 +80,14 @@ class spell_eadric_radiance : public SpellScriptLoader
{
unitList.remove_if(OrientationCheck(GetCaster()));
}
void Register()
{
OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_AREA_ENEMY_SRC);
OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_AREA_ENEMY_SRC);
}
};
SpellScript *GetSpellScript() const
{
return new spell_eadric_radiance_SpellScript();

View File

@@ -58,7 +58,7 @@ enum InstanceGameObjects
enum InstanceEvents
{
EVENT_FOCUSING_IRIS = 20711
EVENT_FOCUSING_IRIS = 20711
};
enum InstanceSpells

View File

@@ -106,7 +106,7 @@ class spell_ulduar_proximity_mines : public SpellScriptLoader
OnEffect += SpellEffectFn(spell_ulduar_proximity_minesSpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
SpellScript* GetSpellScript() const
{
return new spell_ulduar_proximity_minesSpellScript();