aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Accounts/RBAC.h38
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp14
-rw-r--r--src/server/game/Globals/ObjectMgr.h10
-rw-r--r--src/server/game/Movement/Spline/MoveSplineInit.cpp2
-rw-r--r--src/server/game/World/World.cpp2
-rw-r--r--src/server/scripts/Commands/cs_rbac.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/BaradinHold/boss_alizabal.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/zone_western_plaguelands.cpp2
-rw-r--r--src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp2
-rw-r--r--src/server/scripts/Northrend/zone_icecrown.cpp2
-rw-r--r--src/server/scripts/Outland/BlackTemple/boss_supremus.cpp2
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp2
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp4
-rw-r--r--src/server/shared/Logging/AppenderFile.cpp2
-rw-r--r--src/server/worldserver/worldserver.conf.dist2
15 files changed, 48 insertions, 48 deletions
diff --git a/src/server/game/Accounts/RBAC.h b/src/server/game/Accounts/RBAC.h
index 5420df29d17..d2c76b71801 100644
--- a/src/server/game/Accounts/RBAC.h
+++ b/src/server/game/Accounts/RBAC.h
@@ -161,10 +161,10 @@ class RBACData: public RBACObject
* @name HasPermission
* @brief Checks if certain action is allowed
*
- * Checks if certain action can be performed.
+ * Checks if certain action can be performed.
*
* @return grant or deny action
- *
+ *
* Example Usage:
* @code
* bool Player::CanJoinArena(Battleground* bg)
@@ -175,7 +175,7 @@ class RBACData: public RBACObject
*/
bool HasPermission(uint32 permission) { return _globalPerms.test(permission); }
- // Functions enabled to be used by command system
+ // Functions enabled to be used by command system
/// Returns all the granted permissions (after computation)
RBACPermissionContainer const& GetPermissions() const { return _globalPerms; }
/// Returns all the granted permissions
@@ -197,12 +197,12 @@ class RBACData: public RBACObject
* No save to db action will be performed.
*
* Fails if group Id does not exists or group already present
- *
+ *
* @param groupId group to be added
* @param realmId realm affected
*
* @return Success or failure (with reason) to add the group
- *
+ *
* Example Usage:
* @code
* // previously defined "RBACData* rbac" with proper initialization
@@ -222,12 +222,12 @@ class RBACData: public RBACObject
* "all realms (-1)" in addition to the realm specified
*
* Fails if group not present
- *
+ *
* @param groupId group to be removed
* @param realmId realm affected
*
* @return Success or failure (with reason) to remove the group
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 groupId = 2;
@@ -245,12 +245,12 @@ class RBACData: public RBACObject
* No save to db action will be performed.
*
* Fails if role Id does not exists or role already granted or denied
- *
+ *
* @param roleId role to be granted
* @param realmId realm affected
*
* @return Success or failure (with reason) to grant the role
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 roleId = 2;
@@ -268,12 +268,12 @@ class RBACData: public RBACObject
* No save to db action will be performed.
*
* Fails if role Id does not exists or role already granted or denied
- *
+ *
* @param roleId role to be denied
* @param realmId realm affected
*
* @return Success or failure (with reason) to deny the role
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 roleId = 2;
@@ -292,12 +292,12 @@ class RBACData: public RBACObject
* "all realms (-1)" in addition to the realm specified
*
* Fails if role not present
- *
+ *
* @param roleId role to be removed
* @param realmId realm affected
*
* @return Success or failure (with reason) to remove the role
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 roleId = 2;
@@ -315,12 +315,12 @@ class RBACData: public RBACObject
* No save to db action will be performed.
*
* Fails if permission Id does not exists or permission already granted or denied
- *
+ *
* @param permissionId permission to be granted
* @param realmId realm affected
*
* @return Success or failure (with reason) to grant the permission
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 permissionId = 2;
@@ -338,12 +338,12 @@ class RBACData: public RBACObject
* No save to db action will be performed.
*
* Fails if permission Id does not exists or permission already granted or denied
- *
+ *
* @param permissionId permission to be denied
* @param realmId realm affected
*
* @return Success or failure (with reason) to deny the permission
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 permissionId = 2;
@@ -362,12 +362,12 @@ class RBACData: public RBACObject
* "all realms (-1)" in addition to the realm specified
*
* Fails if permission not present
- *
+ *
* @param permissionId permission to be removed
* @param realmId realm affected
*
* @return Success or failure (with reason) to remove the permission
- *
+ *
* Example Usage:
* // previously defined "RBACData* rbac" with proper initialization
* uint32 permissionId = 2;
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 043afdf4687..8597b6098a9 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -292,18 +292,18 @@ void ObjectMgr::AddLocaleString(std::string const& s, LocaleConstant locale, Str
void ObjectMgr::LoadGraveyardOrientations()
{
uint32 oldMSTime = getMSTime();
-
+
_graveyardOrientations.clear();
-
+
QueryResult result = WorldDatabase.Query("SELECT id, orientation FROM graveyard_orientation");
-
+
if (!result)
return;
-
+
do
{
Field* fields = result->Fetch();
-
+
uint32 id = fields[0].GetUInt32();
if (!sWorldSafeLocsStore.LookupEntry(id))
{
@@ -311,9 +311,9 @@ void ObjectMgr::LoadGraveyardOrientations()
continue;
}
_graveyardOrientations[id] = fields[1].GetFloat();
-
+
} while (result->NextRow());
-
+
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %lu graveyard orientations in %u ms", (unsigned long)_graveyardOrientations.size(), GetMSTimeDiffToNow(oldMSTime));
}
diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h
index 563b218c55c..8c14f902c1f 100644
--- a/src/server/game/Globals/ObjectMgr.h
+++ b/src/server/game/Globals/ObjectMgr.h
@@ -1118,16 +1118,16 @@ class ObjectMgr
return &iter->second;
}
-
+
float const* GetGraveyardOrientation(uint32 id) const
{
GraveyardOrientationContainer::const_iterator iter = _graveyardOrientations.find(id);
if (iter != _graveyardOrientations.end())
return &iter->second;
-
+
return NULL;
}
-
+
void AddVendorItem(uint32 entry, uint32 item, int32 maxcount, uint32 incrtime, uint32 extendedCost, uint8 type, bool persist = true); // for event
bool RemoveVendorItem(uint32 entry, uint32 item, uint8 type, bool persist = true); // for event
bool IsVendorItemValid(uint32 vendor_entry, uint32 id, int32 maxcount, uint32 ptime, uint32 ExtendedCost, uint8 type, Player* player = NULL, std::set<uint32>* skip_vendors = NULL, uint32 ORnpcflag = 0) const;
@@ -1163,7 +1163,7 @@ class ObjectMgr
// for wintergrasp only
GraveYardContainer GraveYardStore;
-
+
static void AddLocaleString(std::string const& s, LocaleConstant locale, StringVector& data);
static inline void GetLocaleString(const StringVector& data, int loc_idx, std::string& value)
{
@@ -1325,7 +1325,7 @@ class ObjectMgr
CacheVendorItemContainer _cacheVendorItemStore;
CacheTrainerSpellContainer _cacheTrainerSpellStore;
-
+
GraveyardOrientationContainer _graveyardOrientations;
std::set<uint32> _difficultyEntries[MAX_DIFFICULTY - 1]; // already loaded difficulty 1 value in creatures, used in CheckCreatureTemplate
diff --git a/src/server/game/Movement/Spline/MoveSplineInit.cpp b/src/server/game/Movement/Spline/MoveSplineInit.cpp
index f7d876d7aa3..249f25a6353 100644
--- a/src/server/game/Movement/Spline/MoveSplineInit.cpp
+++ b/src/server/game/Movement/Spline/MoveSplineInit.cpp
@@ -118,7 +118,7 @@ namespace Movement
PacketBuilder::WriteMonsterMove(move_spline, data);
unit->SendMessageToSet(&data, true);
-
+
return move_spline.Duration();
}
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index ef0c9b64475..4a1d1566af1 100644
--- a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -1548,7 +1548,7 @@ void World::SetInitialWorldSettings()
sObjectMgr->LoadGraveyardZones();
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading Graveyard Orientations...");
- sObjectMgr->LoadGraveyardOrientations();
+ sObjectMgr->LoadGraveyardOrientations();
sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading spell pet auras...");
sSpellMgr->LoadSpellPetAuras();
diff --git a/src/server/scripts/Commands/cs_rbac.cpp b/src/server/scripts/Commands/cs_rbac.cpp
index fb21def4c02..092aabb0045 100644
--- a/src/server/scripts/Commands/cs_rbac.cpp
+++ b/src/server/scripts/Commands/cs_rbac.cpp
@@ -674,7 +674,7 @@ public:
handler->SetSentErrorMessage(true);
return false;
}
-
+
handler->PSendSysMessage("%s", handler->GetTrinityString(LANG_RBAC_LIST_GROUPS_HEADER));
handler->PSendSysMessage(LANG_RBAC_LIST_ELEMENT, group->GetId(), group->GetName().c_str());
handler->PSendSysMessage("%s", handler->GetTrinityString(LANG_RBAC_LIST_ROLES_HEADER));
@@ -719,7 +719,7 @@ public:
handler->SetSentErrorMessage(true);
return false;
}
-
+
handler->PSendSysMessage("%s", handler->GetTrinityString(LANG_RBAC_LIST_ROLES_HEADER));
handler->PSendSysMessage(LANG_RBAC_LIST_ELEMENT, role->GetId(), role->GetName().c_str());
handler->PSendSysMessage("%s", handler->GetTrinityString(LANG_RBAC_LIST_PERMISSIONS_HEADER));
@@ -765,7 +765,7 @@ public:
handler->SetSentErrorMessage(true);
return false;
}
-
+
handler->PSendSysMessage("%s", handler->GetTrinityString(LANG_RBAC_LIST_PERMISSIONS_HEADER));
handler->PSendSysMessage(LANG_RBAC_LIST_ELEMENT, permission->GetId(), permission->GetName().c_str());
}
diff --git a/src/server/scripts/EasternKingdoms/BaradinHold/boss_alizabal.cpp b/src/server/scripts/EasternKingdoms/BaradinHold/boss_alizabal.cpp
index fe7f3f47161..3c6369003ec 100644
--- a/src/server/scripts/EasternKingdoms/BaradinHold/boss_alizabal.cpp
+++ b/src/server/scripts/EasternKingdoms/BaradinHold/boss_alizabal.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
@@ -79,7 +79,7 @@ class boss_alizabal : public CreatureScript
{
public:
boss_alizabal() : CreatureScript("boss_alizabal") { }
-
+
struct boss_alizabalAI : public BossAI
{
boss_alizabalAI(Creature* creature) : BossAI(creature, DATA_ALIZABAL)
@@ -253,7 +253,7 @@ class boss_alizabal : public CreatureScript
break;
}
}
-
+
DoMeleeAttackIfReady();
}
};
diff --git a/src/server/scripts/EasternKingdoms/zone_western_plaguelands.cpp b/src/server/scripts/EasternKingdoms/zone_western_plaguelands.cpp
index 6fa3401bcc9..c8bc82be245 100644
--- a/src/server/scripts/EasternKingdoms/zone_western_plaguelands.cpp
+++ b/src/server/scripts/EasternKingdoms/zone_western_plaguelands.cpp
@@ -256,7 +256,7 @@ public:
struct npc_andorhal_towerAI : public ScriptedAI
{
- npc_andorhal_towerAI(Creature* creature) : ScriptedAI(creature)
+ npc_andorhal_towerAI(Creature* creature) : ScriptedAI(creature)
{
SetCombatMovement(false);
}
diff --git a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp
index a9bf8c6ea8f..d84091e3cc7 100644
--- a/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp
+++ b/src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp
@@ -976,7 +976,7 @@ class npc_meteor_strike_initial : public CreatureScript
{
npc_meteor_strike_initialAI(Creature* creature) : ScriptedAI(creature),
_instance(creature->GetInstanceScript())
- {
+ {
SetCombatMovement(false);
}
diff --git a/src/server/scripts/Northrend/zone_icecrown.cpp b/src/server/scripts/Northrend/zone_icecrown.cpp
index 47fb7a86d32..70210844394 100644
--- a/src/server/scripts/Northrend/zone_icecrown.cpp
+++ b/src/server/scripts/Northrend/zone_icecrown.cpp
@@ -266,7 +266,7 @@ public:
struct npc_guardian_pavilionAI : public ScriptedAI
{
- npc_guardian_pavilionAI(Creature* creature) : ScriptedAI(creature)
+ npc_guardian_pavilionAI(Creature* creature) : ScriptedAI(creature)
{
SetCombatMovement(false);
}
diff --git a/src/server/scripts/Outland/BlackTemple/boss_supremus.cpp b/src/server/scripts/Outland/BlackTemple/boss_supremus.cpp
index 90b265e2a65..2fac33760e2 100644
--- a/src/server/scripts/Outland/BlackTemple/boss_supremus.cpp
+++ b/src/server/scripts/Outland/BlackTemple/boss_supremus.cpp
@@ -274,7 +274,7 @@ public:
struct npc_volcanoAI : public ScriptedAI
{
- npc_volcanoAI(Creature* creature) : ScriptedAI(creature)
+ npc_volcanoAI(Creature* creature) : ScriptedAI(creature)
{
SetCombatMovement(false);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
index 8d66e0824b9..c4111f59d65 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
@@ -1406,7 +1406,7 @@ class mob_kael_flamestrike : public CreatureScript
}
struct mob_kael_flamestrikeAI : public ScriptedAI
{
- mob_kael_flamestrikeAI(Creature* creature) : ScriptedAI(creature)
+ mob_kael_flamestrikeAI(Creature* creature) : ScriptedAI(creature)
{
SetCombatMovement(false);
}
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index a581a6ee351..ac9b861f584 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -56,7 +56,7 @@ enum PaladinSpells
SPELL_PALADIN_DIVINE_SACRIFICE = 64205,
SPELL_PALADIN_DIVINE_PURPOSE_PROC = 90174,
-
+
SPELL_PALADIN_GLYPH_OF_SALVATION = 63225,
SPELL_PALADIN_RIGHTEOUS_DEFENSE_TAUNT = 31790,
@@ -874,7 +874,7 @@ class spell_pal_templar_s_verdict : public SpellScriptLoader
}
void ChangeDamage(SpellEffIndex /*effIndex*/)
- {
+ {
Unit* caster = GetCaster();
int32 damage = GetHitDamage();
diff --git a/src/server/shared/Logging/AppenderFile.cpp b/src/server/shared/Logging/AppenderFile.cpp
index e29459299f7..93d53bcc30d 100644
--- a/src/server/shared/Logging/AppenderFile.cpp
+++ b/src/server/shared/Logging/AppenderFile.cpp
@@ -48,7 +48,7 @@ void AppenderFile::_write(LogMessage const& message)
snprintf(namebuf, TRINITY_PATH_MAX, filename.c_str(), message.param1.c_str());
logfile = OpenFile(namebuf, mode, backup || exceedMaxSize);
}
- else if (exceedMaxSize)
+ else if (exceedMaxSize)
logfile = OpenFile(filename, "w", true);
if (!logfile)
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 0fc26eae9cd..35d37d97f79 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -2674,7 +2674,7 @@ UI.ShowQuestLevelsInDialogs = 0
# Maximum value is 4294967295 (4 gb). Leave blank for no limit.
# NOTE: Does not work with dynamic filenames.
# Example: 536870912 (512 mb)
-#
+#
Appender.Console=1,3,0
Appender.Server=2,2,0,Server.log,w