Core/Misc: 3.3.5a ports
This commit is contained in:
1 parent
77ea570937
commit
73090c97ec
6 files changed
+20
-17
No files matched your search
@@ -236,10 +236,10 @@ void RBACData::AddPermissions(RBACPermissionContainer const& permsFrom, RBACPerm
|
||||
permsTo.insert(*itr);
|
||||
}
|
||||
|
||||
void RBACData::RemovePermissions(RBACPermissionContainer const& permsFrom, RBACPermissionContainer& permsTo)
|
||||
void RBACData::RemovePermissions(RBACPermissionContainer& permsFrom, RBACPermissionContainer const& permsToRemove)
|
||||
{
|
||||
for (RBACPermissionContainer::const_iterator itr = permsFrom.begin(); itr != permsFrom.end(); ++itr)
|
||||
permsTo.erase(*itr);
|
||||
for (RBACPermissionContainer::const_iterator itr = permsToRemove.begin(); itr != permsToRemove.end(); ++itr)
|
||||
permsFrom.erase(*itr);
|
||||
}
|
||||
|
||||
void RBACData::ExpandPermissions(RBACPermissionContainer& permissions)
|
||||
|
||||
@@ -947,8 +947,8 @@ class RBACData
|
||||
/// Adds a list of permissions to another list
|
||||
void AddPermissions(RBACPermissionContainer const& permsFrom, RBACPermissionContainer& permsTo);
|
||||
|
||||
/// Removes a list of permissions to another list
|
||||
void RemovePermissions(RBACPermissionContainer const& permsFrom, RBACPermissionContainer& permsTo);
|
||||
/// Removes a list of permissions from another list
|
||||
void RemovePermissions(RBACPermissionContainer& permsFrom, RBACPermissionContainer const& permsToRemove);
|
||||
|
||||
/**
|
||||
* @name ExpandPermissions
|
||||
|
||||
@@ -1617,7 +1617,6 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SaveGoldToDB(SQLTransaction& trans) const;
|
||||
|
||||
static void SetUInt32ValueInArray(Tokenizer& data, uint16 index, uint32 value);
|
||||
static void SetFloatValueInArray(Tokenizer& data, uint16 index, float value);
|
||||
static void Customize(CharacterCustomizeInfo const* customizeInfo, SQLTransaction& trans);
|
||||
static void SavePositionInDB(WorldLocation const& loc, uint16 zoneId, ObjectGuid guid, SQLTransaction& trans);
|
||||
|
||||
@@ -1631,7 +1630,6 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetBindPoint(ObjectGuid guid) const;
|
||||
void SendTalentWipeConfirm(ObjectGuid guid) const;
|
||||
void ResetPetTalents();
|
||||
void CalcRage(uint32 damage, bool attacker);
|
||||
void RegenerateAll();
|
||||
void Regenerate(Powers power);
|
||||
void RegenerateHealth();
|
||||
@@ -1823,7 +1821,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
PvPInfo pvpInfo;
|
||||
void UpdatePvPState(bool onlyFFA = false);
|
||||
void SetPvP(bool state);
|
||||
void SetPvP(bool state) override;
|
||||
void UpdatePvP(bool state, bool override=false);
|
||||
void UpdateZone(uint32 newZone, uint32 newArea);
|
||||
void UpdateArea(uint32 newArea);
|
||||
@@ -1915,7 +1913,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) override;
|
||||
|
||||
inline void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);}
|
||||
void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);}
|
||||
float GetMeleeCritFromAgility() const;
|
||||
void GetDodgeFromAgility(float &diminishing, float &nondiminishing) const;
|
||||
float GetSpellCritFromIntellect() const;
|
||||
@@ -1978,8 +1976,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SendResetInstanceFailed(uint32 reason, uint32 MapId) const;
|
||||
void SendResetFailedNotify(uint32 mapid) const;
|
||||
|
||||
virtual bool UpdatePosition(float x, float y, float z, float orientation, bool teleport = false) override;
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false) { return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
|
||||
bool UpdatePosition(float x, float y, float z, float orientation, bool teleport = false) override;
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false) override { return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
|
||||
void UpdateUnderwaterState(Map* m, float x, float y, float z) override;
|
||||
|
||||
void SendMessageToSet(WorldPacket* data, bool self) override { SendMessageToSetInRange(data, GetVisibilityRange(), self); }
|
||||
|
||||
@@ -1402,7 +1402,8 @@ class Unit : public WorldObject
|
||||
bool IsContestedGuard() const;
|
||||
bool IsPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP); }
|
||||
bool IsFFAPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP); }
|
||||
void SetPvP(bool state);
|
||||
virtual void SetPvP(bool state);
|
||||
|
||||
uint32 GetCreatureType() const;
|
||||
uint32 GetCreatureTypeMask() const;
|
||||
|
||||
@@ -1576,7 +1577,7 @@ class Unit : public WorldObject
|
||||
void SendTeleportPacket(Position& pos);
|
||||
virtual bool UpdatePosition(float x, float y, float z, float ang, bool teleport = false);
|
||||
// returns true if unit's position really changed
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false);
|
||||
virtual bool UpdatePosition(const Position &pos, bool teleport = false);
|
||||
void UpdateOrientation(float orientation);
|
||||
void UpdateHeight(float newZ);
|
||||
|
||||
|
||||
@@ -6580,7 +6580,12 @@ uint32 ObjectMgr::GenerateMailID()
|
||||
|
||||
uint32 ObjectMgr::GeneratePetNumber()
|
||||
{
|
||||
return ++_hiPetNumber;
|
||||
if (_hiPetNumber >= 0xFFFFFFFE)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "_hiPetNumber Id overflow!! Can't continue, shutting down server. ");
|
||||
World::StopNow(ERROR_EXIT_CODE);
|
||||
}
|
||||
return _hiPetNumber++;
|
||||
}
|
||||
|
||||
uint64 ObjectMgr::GenerateVoidStorageItemId()
|
||||
|
||||
@@ -1076,9 +1076,8 @@ BeepAtStart = 1
|
||||
|
||||
#
|
||||
# Motd
|
||||
# Description: Message of the Day, displayed at login.
|
||||
# Use '@' for a newline and be sure to escape special characters.
|
||||
# Example: "Welcome to John\'s Server@This server runs on Trinity Core."
|
||||
# Description: Message of the Day, displayed at login. Use '@' for a newline.
|
||||
# Example: "Welcome to John's Server!@This server is proud to be powered by Trinity Core."
|
||||
# Default: "Welcome to a Trinity Core server."
|
||||
|
||||
Motd = "Welcome to a Trinity Core server."
|
||||
|
||||
Reference in new issue
Block a user