mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10924] Send time diff between Update() calls for object - should help with mob respawn on inactive grids etc. Based on patches by VladimirMangos and cipherCOM. All issues from previous patches should be finally fixed now.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
72b1d30a1c
commit
b11820593c
39 changed files with 284 additions and 149 deletions
|
|
@ -455,7 +455,6 @@ void Map::Update(const uint32 &t_diff)
|
|||
Player* plr = m_mapRefIter->getSource();
|
||||
if(plr && plr->IsInWorld())
|
||||
{
|
||||
//plr->Update(t_diff);
|
||||
WorldSession * pSession = plr->GetSession();
|
||||
MapSessionFilter updater(pSession);
|
||||
|
||||
|
|
@ -468,7 +467,10 @@ void Map::Update(const uint32 &t_diff)
|
|||
{
|
||||
Player* plr = m_mapRefIter->getSource();
|
||||
if(plr && plr->IsInWorld())
|
||||
plr->Update(t_diff);
|
||||
{
|
||||
WorldObject::UpdateHelper helper(plr);
|
||||
helper.Update(t_diff);
|
||||
}
|
||||
}
|
||||
|
||||
/// update active cells around players and active objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue