mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10611] Made some values const
Signed-off-by: DasBlub <dasblub@gmail.com>
This commit is contained in:
parent
61102e3b16
commit
47d971c7f9
59 changed files with 64 additions and 64 deletions
|
|
@ -310,7 +310,7 @@ BattleGround::~BattleGround()
|
|||
delete itr->second;
|
||||
}
|
||||
|
||||
void BattleGround::Update(uint32 diff)
|
||||
void BattleGround::Update(const uint32 diff)
|
||||
{
|
||||
if (!GetPlayersSize())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ class BattleGround
|
|||
BattleGround();
|
||||
/*BattleGround(const BattleGround& bg);*/
|
||||
virtual ~BattleGround();
|
||||
virtual void Update(uint32 diff); // must be implemented in BG subclass of BG specific update code, but must in begginning call parent version
|
||||
virtual void Update(const uint32 diff); // must be implemented in BG subclass of BG specific update code, but must in begginning call parent version
|
||||
virtual bool SetupBattleGround() // must be implemented in BG subclass
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ BattleGroundAA::~BattleGroundAA()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundAA::Update(uint32 diff)
|
||||
void BattleGroundAA::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundAA : public BattleGround
|
|||
public:
|
||||
BattleGroundAA();
|
||||
~BattleGroundAA();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ BattleGroundAB::~BattleGroundAB()
|
|||
{
|
||||
}
|
||||
|
||||
void BattleGroundAB::Update(uint32 diff)
|
||||
void BattleGroundAB::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class BattleGroundAB : public BattleGround
|
|||
BattleGroundAB();
|
||||
~BattleGroundAB();
|
||||
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
void AddPlayer(Player *plr);
|
||||
virtual void StartingEventCloseDoors();
|
||||
virtual void StartingEventOpenDoors();
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ void BattleGroundAV::UpdateScore(BattleGroundTeamId team, int32 points )
|
|||
UpdateWorldState(((team == BG_TEAM_HORDE) ? BG_AV_Horde_Score : BG_AV_Alliance_Score), m_TeamScores[team]);
|
||||
}
|
||||
|
||||
void BattleGroundAV::Update(uint32 diff)
|
||||
void BattleGroundAV::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ class BattleGroundAV : public BattleGround
|
|||
public:
|
||||
BattleGroundAV();
|
||||
~BattleGroundAV();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ BattleGroundBE::~BattleGroundBE()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundBE::Update(uint32 diff)
|
||||
void BattleGroundBE::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class BattleGroundBE : public BattleGround
|
|||
public:
|
||||
BattleGroundBE();
|
||||
~BattleGroundBE();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ BattleGroundDS::~BattleGroundDS()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundDS::Update(uint32 diff)
|
||||
void BattleGroundDS::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundDS : public BattleGround
|
|||
public:
|
||||
BattleGroundDS();
|
||||
~BattleGroundDS();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ BattleGroundEY::~BattleGroundEY()
|
|||
{
|
||||
}
|
||||
|
||||
void BattleGroundEY::Update(uint32 diff)
|
||||
void BattleGroundEY::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ class BattleGroundEY : public BattleGround
|
|||
public:
|
||||
BattleGroundEY();
|
||||
~BattleGroundEY();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ BattleGroundIC::~BattleGroundIC()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundIC::Update(uint32 diff)
|
||||
void BattleGroundIC::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundIC : public BattleGround
|
|||
public:
|
||||
BattleGroundIC();
|
||||
~BattleGroundIC();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -1151,7 +1151,7 @@ void BattleGroundMgr::DeleteAllBattleGrounds()
|
|||
}
|
||||
|
||||
// used to update running battlegrounds, and delete finished ones
|
||||
void BattleGroundMgr::Update(uint32 diff)
|
||||
void BattleGroundMgr::Update(const uint32 diff)
|
||||
{
|
||||
// update scheduled queues
|
||||
if (!m_QueueUpdateScheduler.empty())
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class BattleGroundMgr
|
|||
/* Construction */
|
||||
BattleGroundMgr();
|
||||
~BattleGroundMgr();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* Packet Building */
|
||||
void BuildPlayerJoinedBattleGroundPacket(WorldPacket *data, Player *plr);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ BattleGroundNA::~BattleGroundNA()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundNA::Update(uint32 diff)
|
||||
void BattleGroundNA::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundNA : public BattleGround
|
|||
public:
|
||||
BattleGroundNA();
|
||||
~BattleGroundNA();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ BattleGroundRB::~BattleGroundRB()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundRB::Update(uint32 diff)
|
||||
void BattleGroundRB::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundRB : public BattleGround
|
|||
public:
|
||||
BattleGroundRB();
|
||||
~BattleGroundRB();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ BattleGroundRL::~BattleGroundRL()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundRL::Update(uint32 diff)
|
||||
void BattleGroundRL::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundRL : public BattleGround
|
|||
public:
|
||||
BattleGroundRL();
|
||||
~BattleGroundRL();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ BattleGroundRV::~BattleGroundRV()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundRV::Update(uint32 diff)
|
||||
void BattleGroundRV::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundRV : public BattleGround
|
|||
public:
|
||||
BattleGroundRV();
|
||||
~BattleGroundRV();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ BattleGroundSA::~BattleGroundSA()
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundSA::Update(uint32 diff)
|
||||
void BattleGroundSA::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class BattleGroundSA : public BattleGround
|
|||
public:
|
||||
BattleGroundSA();
|
||||
~BattleGroundSA();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ BattleGroundWS::~BattleGroundWS()
|
|||
{
|
||||
}
|
||||
|
||||
void BattleGroundWS::Update(uint32 diff)
|
||||
void BattleGroundWS::Update(const uint32 diff)
|
||||
{
|
||||
BattleGround::Update(diff);
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ class BattleGroundWS : public BattleGround
|
|||
/* Construction */
|
||||
BattleGroundWS();
|
||||
~BattleGroundWS();
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
/* inherited from BattlegroundClass */
|
||||
virtual void AddPlayer(Player *plr);
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ uint32 Creature::ChooseDisplayId(const CreatureInfo *cinfo, const CreatureData *
|
|||
return display_id;
|
||||
}
|
||||
|
||||
void Creature::Update(uint32 diff)
|
||||
void Creature::Update(const uint32 diff)
|
||||
{
|
||||
if (m_needNotify)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -401,7 +401,7 @@ class MANGOS_DLL_SPEC Creature : public Unit
|
|||
uint32 GetDBTableGUIDLow() const { return m_DBTableGuid; }
|
||||
char const* GetSubName() const { return GetCreatureInfo()->SubName; }
|
||||
|
||||
void Update(uint32 time); // overwrite Unit::Update
|
||||
void Update(const uint32 time); // overwrite Unit::Update
|
||||
void GetRespawnCoord(float &x, float &y, float &z, float* ori = NULL, float* dist =NULL) const;
|
||||
uint32 GetEquipmentId() const { return m_equipmentId; }
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ Unit* DynamicObject::GetCaster() const
|
|||
return ObjectAccessor::GetUnit(*this, GetCasterGUID());
|
||||
}
|
||||
|
||||
void DynamicObject::Update(uint32 p_time)
|
||||
void DynamicObject::Update(const uint32 p_time)
|
||||
{
|
||||
// caster can be not in world at time dynamic object update, but dynamic object not yet deleted in Unit destructor
|
||||
Unit* caster = GetCaster();
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class DynamicObject : public WorldObject
|
|||
void RemoveFromWorld();
|
||||
|
||||
bool Create(uint32 guidlow, Unit *caster, uint32 spellId, SpellEffectIndex effIndex, float x, float y, float z, int32 duration, float radius);
|
||||
void Update(uint32 p_time);
|
||||
void Update(const uint32 p_time);
|
||||
void Delete();
|
||||
uint32 GetSpellId() const { return m_spellId; }
|
||||
SpellEffectIndex GetEffIndex() const { return m_effIndex; }
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
|
|||
return true;
|
||||
}
|
||||
|
||||
void GameObject::Update(uint32 /*p_time*/)
|
||||
void GameObject::Update(const uint32 /*p_time*/)
|
||||
{
|
||||
if (GetObjectGuid().IsMOTransport())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ class MANGOS_DLL_SPEC GameObject : public WorldObject
|
|||
void RemoveFromWorld();
|
||||
|
||||
bool Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint8 animprogress, GOState go_state);
|
||||
void Update(uint32 p_time);
|
||||
void Update(const uint32 p_time);
|
||||
GameObjectInfo const* GetGOInfo() const;
|
||||
|
||||
bool IsTransport() const;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class MANGOS_DLL_SPEC InstanceData
|
|||
void SaveToDB();
|
||||
|
||||
//Called every map update
|
||||
virtual void Update(uint32 /*diff*/) {}
|
||||
virtual void Update(const uint32 /*diff*/) {}
|
||||
|
||||
//Used by the map's CanEnter function.
|
||||
//This is to prevent players from entering during boss encounters.
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ void MapManager::DeleteInstance(uint32 mapid, uint32 instanceId)
|
|||
}
|
||||
|
||||
void
|
||||
MapManager::Update(uint32 diff)
|
||||
MapManager::Update(const uint32 diff)
|
||||
{
|
||||
i_timer.Update(diff);
|
||||
if( !i_timer.Passed() )
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::
|
|||
}
|
||||
|
||||
void Initialize(void);
|
||||
void Update(uint32);
|
||||
void Update(const uint32);
|
||||
|
||||
void SetGridCleanUpDelay(uint32 t)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ MotionMaster::~MotionMaster()
|
|||
DirectClean(false,true);
|
||||
}
|
||||
|
||||
void MotionMaster::UpdateMotion(uint32 diff)
|
||||
void MotionMaster::UpdateMotion(const uint32 diff)
|
||||
{
|
||||
if (m_owner->hasUnitState(UNIT_STAT_CAN_NOT_MOVE))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class MANGOS_DLL_SPEC MotionMaster : private std::stack<MovementGenerator *>
|
|||
const_iterator begin() const { return Impl::c.begin(); }
|
||||
const_iterator end() const { return Impl::c.end(); }
|
||||
|
||||
void UpdateMotion(uint32 diff);
|
||||
void UpdateMotion(const uint32 diff);
|
||||
void Clear(bool reset = true, bool all = false)
|
||||
{
|
||||
if (m_cleanFlag & MMCF_UPDATE)
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object
|
|||
public:
|
||||
virtual ~WorldObject ( ) {}
|
||||
|
||||
virtual void Update ( uint32 /*time_diff*/ ) { }
|
||||
virtual void Update(const uint32 /*time_diff*/) { }
|
||||
|
||||
void _Create( uint32 guidlow, HighGuid guidhigh, uint32 phaseMask);
|
||||
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ void Pet::SetDeathState(DeathState s) // overwrite virtual
|
|||
}
|
||||
}
|
||||
|
||||
void Pet::Update(uint32 diff)
|
||||
void Pet::Update(const uint32 diff)
|
||||
{
|
||||
if(m_removed) // pet already removed, just wait in remove queue, no updates
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ class Pet : public Creature
|
|||
static void DeleteFromDB(uint32 guidlow);
|
||||
|
||||
void SetDeathState(DeathState s); // overwrite virtual Creature::SetDeathState and Unit::SetDeathState
|
||||
void Update(uint32 diff); // overwrite virtual Creature::Update and Unit::Update
|
||||
void Update(const uint32 diff); // overwrite virtual Creature::Update and Unit::Update
|
||||
|
||||
uint8 GetPetAutoSpellSize() const { return m_autospells.size(); }
|
||||
uint32 GetPetAutoSpellOnPos(uint8 pos) const
|
||||
|
|
|
|||
|
|
@ -1179,7 +1179,7 @@ void Player::SetDrunkValue(uint16 newDrunkenValue, uint32 itemId)
|
|||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Player::Update( uint32 p_time )
|
||||
void Player::Update(const uint32 p_time)
|
||||
{
|
||||
if(!IsInWorld())
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1121,7 +1121,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
|||
|
||||
bool Create( uint32 guidlow, const std::string& name, uint8 race, uint8 class_, uint8 gender, uint8 skin, uint8 face, uint8 hairStyle, uint8 hairColor, uint8 facialHair, uint8 outfitId );
|
||||
|
||||
void Update( uint32 time );
|
||||
void Update(const uint32 time);
|
||||
|
||||
static bool BuildEnumData( QueryResult * result, WorldPacket * p_data );
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ Creature(CREATURE_SUBTYPE_TEMPORARY_SUMMON), m_type(TEMPSUMMON_TIMED_OR_CORPSE_D
|
|||
{
|
||||
}
|
||||
|
||||
void TemporarySummon::Update( uint32 diff )
|
||||
void TemporarySummon::Update(const uint32 diff)
|
||||
{
|
||||
switch(m_type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class TemporarySummon : public Creature
|
|||
public:
|
||||
explicit TemporarySummon(ObjectGuid summoner = ObjectGuid());
|
||||
virtual ~TemporarySummon(){};
|
||||
void Update(uint32 time);
|
||||
void Update(const uint32 time);
|
||||
void Summon(TempSummonType type, uint32 lifetime);
|
||||
void MANGOS_DLL_SPEC UnSummon();
|
||||
void SaveToDB();
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Totem::Totem() : Creature(CREATURE_SUBTYPE_TOTEM)
|
|||
m_type = TOTEM_PASSIVE;
|
||||
}
|
||||
|
||||
void Totem::Update( uint32 time )
|
||||
void Totem::Update(const uint32 time)
|
||||
{
|
||||
Unit *owner = GetOwner();
|
||||
if (!owner || !owner->isAlive() || !isAlive())
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Totem : public Creature
|
|||
public:
|
||||
explicit Totem();
|
||||
virtual ~Totem(){};
|
||||
void Update( uint32 time );
|
||||
void Update(const uint32 time);
|
||||
void Summon(Unit* owner);
|
||||
void UnSummon();
|
||||
uint32 GetSpell() const { return m_spells[0]; }
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ bool Transport::RemovePassenger(Player* passenger)
|
|||
return true;
|
||||
}
|
||||
|
||||
void Transport::Update(uint32 /*p_time*/)
|
||||
void Transport::Update(const uint32 /*p_time*/)
|
||||
{
|
||||
if (m_WayPoints.size() <= 1)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class Transport : public GameObject
|
|||
|
||||
bool Create(uint32 guidlow, uint32 mapid, float x, float y, float z, float ang, uint8 animprogress, uint16 dynamicHighValue);
|
||||
bool GenerateWaypoints(uint32 pathid, std::set<uint32> &mapids);
|
||||
void Update(uint32 p_time);
|
||||
void Update(const uint32 p_time);
|
||||
bool AddPassenger(Player* passenger);
|
||||
bool RemovePassenger(Player* passenger);
|
||||
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ Unit::~Unit()
|
|||
MANGOS_ASSERT(m_deletedHolders.size() == 0);
|
||||
}
|
||||
|
||||
void Unit::Update( uint32 p_time )
|
||||
void Unit::Update(const uint32 p_time)
|
||||
{
|
||||
if(!IsInWorld())
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1162,7 +1162,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
void ApplyDiminishingAura(DiminishingGroup group, bool apply);
|
||||
void ClearDiminishings() { m_Diminishing.clear(); }
|
||||
|
||||
virtual void Update( uint32 time );
|
||||
virtual void Update(const uint32 time);
|
||||
|
||||
void setAttackTimer(WeaponAttackType type, uint32 time) { m_attackTimer[type] = time; }
|
||||
void resetAttackTimer(WeaponAttackType type = BASE_ATTACK);
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ void Vehicle::SetDeathState(DeathState s) // overwrite vir
|
|||
Creature::SetDeathState(s);
|
||||
}
|
||||
|
||||
void Vehicle::Update(uint32 diff)
|
||||
void Vehicle::Update(const uint32 diff)
|
||||
{
|
||||
Creature::Update(diff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1373,7 +1373,7 @@ void World::DetectDBCLang()
|
|||
}
|
||||
|
||||
/// Update the World !
|
||||
void World::Update(uint32 diff)
|
||||
void World::Update(const uint32 diff)
|
||||
{
|
||||
///- Update the different timers
|
||||
for(int i = 0; i < WUPDATE_COUNT; ++i)
|
||||
|
|
@ -1857,7 +1857,7 @@ void World::SendServerMessage(ServerMessageType type, const char *text, Player*
|
|||
SendGlobalMessage( &data );
|
||||
}
|
||||
|
||||
void World::UpdateSessions( uint32 diff )
|
||||
void World::UpdateSessions(const uint32 diff)
|
||||
{
|
||||
///- Add new sessions
|
||||
WorldSession* sess;
|
||||
|
|
|
|||
|
|
@ -509,7 +509,7 @@ class World
|
|||
static void StopNow(uint8 exitcode) { m_stopEvent = true; m_ExitCode = exitcode; }
|
||||
static bool IsStopped() { return m_stopEvent; }
|
||||
|
||||
void Update(uint32 diff);
|
||||
void Update(const uint32 diff);
|
||||
|
||||
void UpdateSessions( uint32 diff );
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ void WorldSession::LogUnprocessedTail(WorldPacket *packet)
|
|||
}
|
||||
|
||||
/// Update the WorldSession (triggered by World update)
|
||||
bool WorldSession::Update(uint32 /*diff*/)
|
||||
bool WorldSession::Update(const uint32 /*diff*/)
|
||||
{
|
||||
///- Retrieve packets from the receive queue and call the appropriate handlers
|
||||
/// not proccess packets if socket already closed
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10610"
|
||||
#define REVISION_NR "10611"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue