From 450c6af43bd18b42dc9475befa062d51f04a946c Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 19 Apr 2010 17:13:20 +0200 Subject: Code Style: Remove trailing spaces and tab to spaces --HG-- branch : trunk --- src/game/CreatureEventAI.cpp | 2 +- src/game/Group.cpp | 2 +- src/game/Player.cpp | 20 +++++++------- src/game/SpellAuraEffects.cpp | 2 +- src/game/SpellMgr.cpp | 2 +- src/game/World.cpp | 32 +++++++++++----------- .../azjol_nerub/boss_krikthir_the_gatewatcher.cpp | 2 +- src/scripts/northrend/borean_tundra.cpp | 4 +-- src/scripts/northrend/crystalsong_forest.cpp | 2 +- .../northrend/vault_of_archavon/boss_toravon.cpp | 2 +- src/scripts/world/go_scripts.cpp | 2 +- src/scripts/world/item_scripts.cpp | 4 +-- src/scripts/world/npcs_special.cpp | 2 +- 13 files changed, 39 insertions(+), 39 deletions(-) (limited to 'src') diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index a8aa99b74f0..bbb1dde36e7 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -374,7 +374,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32 target = owner; } } - else + else { target = me->getVictim(); if (target && target->GetTypeId() != TYPEID_PLAYER) diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 488649b2e78..0d9fc5eadf7 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -648,7 +648,7 @@ void Group::GroupLoot(Loot *loot, WorldObject* pLootedObject) SendLootRoll(newitemGUID, p->GetGUID(), 128, ROLL_PASS, *r); } } - + SendLootStartRoll(60000, pLootedObject->GetMapId(), *r); RollId.push_back(r); diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 4405da3b7ef..e0acc99fcb0 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -14129,7 +14129,7 @@ void Player::RewardQuest(Quest const *pQuest, uint32 reward, Object* questGiver, } if (pQuest->IsWeekly()) - SetWeeklyQuestStatus(quest_id); + SetWeeklyQuestStatus(quest_id); if (!pQuest->IsRepeatable()) SetQuestStatus(quest_id, QUEST_STATUS_COMPLETE); @@ -15492,7 +15492,7 @@ void Player::SetHomebind(WorldLocation const& /*loc*/, uint32 /*area_id*/) m_homebindX = GetPositionX(); m_homebindY = GetPositionY(); m_homebindZ = GetPositionZ(); - + // update sql homebind CharacterDatabase.PExecute("UPDATE character_homebind SET map = '%u', zone = '%u', position_x = '%f', position_y = '%f', position_z = '%f' WHERE guid = '%u'", m_homebindMapId, m_homebindAreaId, m_homebindX, m_homebindY, m_homebindZ, GetGUIDLow()); @@ -16811,11 +16811,11 @@ void Player::_LoadDailyQuestStatus(QueryResult_AutoPtr result) m_DailyQuestChanged = false; } -void Player::_LoadWeeklyQuestStatus(QueryResult_AutoPtr result) +void Player::_LoadWeeklyQuestStatus(QueryResult_AutoPtr result) { m_weeklyquests.clear(); - if (result) + if (result) { do { @@ -16825,9 +16825,9 @@ void Player::_LoadWeeklyQuestStatus(QueryResult_AutoPtr result) Quest const* pQuest = objmgr.GetQuestTemplate(quest_id); - if (!pQuest) - continue; - + if (!pQuest) + continue; + m_weeklyquests.insert(quest_id); sLog.outDebug("Weekly quest {%u} cooldown for player (GUID: %u)", quest_id, GetGUIDLow()); @@ -17473,7 +17473,7 @@ void Player::SaveToDB() // check if stats should only be saved on logout // save stats can be out of transaction if (m_session->isLogingOut() || !sWorld.getConfig(CONFIG_STATS_SAVE_ONLY_ON_LOGOUT)) - _SaveStats(); + _SaveStats(); // save pet (hunter pet level and experience and all type pets health/mana). if (Pet* pet = GetPet()) @@ -20943,7 +20943,7 @@ void Player::SetDailyQuestStatus(uint32 quest_id) } -void Player::SetWeeklyQuestStatus(uint32 quest_id) +void Player::SetWeeklyQuestStatus(uint32 quest_id) { m_weeklyquests.insert(quest_id); m_WeeklyQuestChanged = true; @@ -20964,7 +20964,7 @@ void Player::ResetWeeklyQuestStatus() if (m_weeklyquests.empty()) return; - m_weeklyquests.clear(); + m_weeklyquests.clear(); // DB data deleted in caller m_WeeklyQuestChanged = false; } diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index cb417e50804..cf35274d38c 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -518,7 +518,7 @@ int32 AuraEffect::CalculateAmount(Unit * caster) if (pAurEff) bonus += (float)pAurEff->GetAmount() / 100.0f; - DoneActualBenefit = caster->SpellBaseHealingBonus(GetSpellSchoolMask(GetSpellProto())) * bonus; + DoneActualBenefit = caster->SpellBaseHealingBonus(GetSpellSchoolMask(GetSpellProto())) * bonus; } break; case SPELLFAMILY_PALADIN: diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index e02702c210c..f50d7496ed0 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1842,7 +1842,7 @@ void SpellMgr::LoadSpellLearnSkills() dbc_node.value = dbc_node.step * 75; dbc_node.maxvalue = dbc_node.step * 75; - // FIXME: db_node not used... remove it? + // FIXME: db_node not used... remove it? SpellLearnSkillNode const* db_node = GetSpellLearnSkill(spell); mSpellLearnSkills[spell] = dbc_node; diff --git a/src/game/World.cpp b/src/game/World.cpp index a8eaa306127..b231558d62a 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -1850,9 +1850,9 @@ void World::Update(uint32 diff) if (m_gameTime > m_NextWeeklyQuestReset) { - ResetWeeklyQuests(); + ResetWeeklyQuests(); m_NextWeeklyQuestReset += WEEK; - } + } ///