[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:
VladimirMangos 2010-11-10 06:14:38 +03:00
parent c1427f7d83
commit 3b0e926788
36 changed files with 145 additions and 180 deletions

View file

@ -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)