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
@@ -775,7 +775,7 @@ bool AuctionEntry::LoadFromDB(Field* fields)
void AuctionHouseMgr::DeleteExpiredAuctionsAtStartup() void AuctionHouseMgr::DeleteExpiredAuctionsAtStartup()
{ {
// Deletes expired auctions. Should be called at server start before loading auctions. // 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 // 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 // and assumes the auctions HAVE NOT been loaded into a list or AuctionEntryMap yet
@@ -83,7 +83,7 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
uint64 guid = 0; uint64 guid = 0;
if (Player *player = sObjectMgr->GetPlayer(name.c_str())) if (Player *player = sObjectMgr->GetPlayer(name.c_str()))
guid = player->GetGUID(); guid = player->GetGUID();
else else
guid = sObjectMgr->GetPlayerGUIDByName(name); guid = sObjectMgr->GetPlayerGUIDByName(name);
// Target must exist // Target must exist
if (!guid) if (!guid)
+1 -1
View File
@@ -153,7 +153,7 @@ public:
SkillLineAbilityEntry const *entry = sSkillLineAbilityStore.LookupEntry(i); SkillLineAbilityEntry const *entry = sSkillLineAbilityStore.LookupEntry(i);
if (!entry) if (!entry)
continue; continue;
SpellEntry const *spellInfo = sSpellStore.LookupEntry(entry->spellId); SpellEntry const *spellInfo = sSpellStore.LookupEntry(entry->spellId);
if (!spellInfo) if (!spellInfo)
continue; continue;
+2 -2
View File
@@ -697,13 +697,13 @@ public:
handler->SetSentErrorMessage(true); handler->SetSentErrorMessage(true);
return false; return false;
} }
if (target->GetTypeId()==TYPEID_PLAYER) if (target->GetTypeId()==TYPEID_PLAYER)
{ {
// check online security // check online security
if (handler->HasLowerSecurity((Player*)target, 0)) if (handler->HasLowerSecurity((Player*)target, 0))
return false; return false;
handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink((Player*)target).c_str()); handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink((Player*)target).c_str());
if (handler->needReportToTarget((Player*)target)) if (handler->needReportToTarget((Player*)target))
(ChatHandler((Player*)target)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale); (ChatHandler((Player*)target)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale);
@@ -64,7 +64,7 @@ class OrientationCheck : public std::unary_function<Unit*, bool>
{ {
return !unit->isInFront(caster, 40.0f, 2.5f); return !unit->isInFront(caster, 40.0f, 2.5f);
} }
private: private:
Unit* caster; Unit* caster;
}; };
@@ -80,14 +80,14 @@ class spell_eadric_radiance : public SpellScriptLoader
{ {
unitList.remove_if(OrientationCheck(GetCaster())); unitList.remove_if(OrientationCheck(GetCaster()));
} }
void Register() void Register()
{ {
OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_AREA_ENEMY_SRC); 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); OnUnitTargetSelect += SpellUnitTargetFn(spell_eadric_radiance_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_AREA_ENEMY_SRC);
} }
}; };
SpellScript *GetSpellScript() const SpellScript *GetSpellScript() const
{ {
return new spell_eadric_radiance_SpellScript(); return new spell_eadric_radiance_SpellScript();
@@ -58,7 +58,7 @@ enum InstanceGameObjects
enum InstanceEvents enum InstanceEvents
{ {
EVENT_FOCUSING_IRIS = 20711 EVENT_FOCUSING_IRIS = 20711
}; };
enum InstanceSpells enum InstanceSpells
@@ -106,7 +106,7 @@ class spell_ulduar_proximity_mines : public SpellScriptLoader
OnEffect += SpellEffectFn(spell_ulduar_proximity_minesSpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); OnEffect += SpellEffectFn(spell_ulduar_proximity_minesSpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
} }
}; };
SpellScript* GetSpellScript() const SpellScript* GetSpellScript() const
{ {
return new spell_ulduar_proximity_minesSpellScript(); return new spell_ulduar_proximity_minesSpellScript();