mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[10717] Revert "[10716][10688] New version of patch for send real diff from last update."
This reverts commit 8398a55fa274471daae115e00c627b299a3fdbbd. This reverts commit 06e2d6859ba3d7fd47be72c23a64e68ae039701f.
This commit is contained in:
parent
c1427f7d83
commit
3b0e926788
36 changed files with 145 additions and 180 deletions
|
|
@ -31,7 +31,7 @@ Totem::Totem() : Creature(CREATURE_SUBTYPE_TOTEM)
|
|||
m_type = TOTEM_PASSIVE;
|
||||
}
|
||||
|
||||
void Totem::Update(uint32 update_diff, uint32 tick_diff)
|
||||
void Totem::Update( uint32 time )
|
||||
{
|
||||
Unit *owner = GetOwner();
|
||||
if (!owner || !owner->isAlive() || !isAlive())
|
||||
|
|
@ -40,15 +40,15 @@ void Totem::Update(uint32 update_diff, uint32 tick_diff)
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_duration <= update_diff)
|
||||
if (m_duration <= time)
|
||||
{
|
||||
UnSummon(); // remove self
|
||||
return;
|
||||
}
|
||||
else
|
||||
m_duration -= update_diff;
|
||||
m_duration -= time;
|
||||
|
||||
Creature::Update(update_diff, tick_diff);
|
||||
Creature::Update( time );
|
||||
}
|
||||
|
||||
void Totem::Summon(Unit* owner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue