[10683] Revert "[10677] Send to creature/etc Update call real diff from last update and use it."

This reverts commit 10784a8c7cc81c468b5411e973d36ecf31de9603.

Main reason: impossibility for me as commiter test problem and fix all corner cases problems.
This commit is contained in:
VladimirMangos 2010-11-05 19:51:28 +03:00
parent 2f144d9d29
commit 0847d4c8cd
35 changed files with 149 additions and 162 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)