mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
2f144d9d29
commit
0847d4c8cd
35 changed files with 149 additions and 162 deletions
|
|
@ -103,16 +103,6 @@ void Object::_Create(uint32 guidlow, uint32 entry, HighGuid guidhigh)
|
|||
m_PackGUID.Set(guid);
|
||||
}
|
||||
|
||||
void WorldObject::UpdateCall(uint32 newtime, uint32 diff)
|
||||
{
|
||||
// use real time diff from last object update call
|
||||
// this can have big diff from tick diff time for object returning to active zone)
|
||||
uint32 realDiff = getMSTimeDiff(m_lastUpdateTime, newtime);
|
||||
m_lastUpdateTime = newtime;
|
||||
|
||||
Update(realDiff, diff);
|
||||
}
|
||||
|
||||
void Object::SetObjectScale(float newScale)
|
||||
{
|
||||
SetFloatValue(OBJECT_FIELD_SCALE_X, newScale);
|
||||
|
|
@ -1131,7 +1121,7 @@ void Object::BuildUpdateData( UpdateDataMapType& /*update_players */)
|
|||
|
||||
WorldObject::WorldObject()
|
||||
: m_isActiveObject(false), m_currMap(NULL), m_mapId(0), m_InstanceId(0), m_phaseMask(PHASEMASK_NORMAL),
|
||||
m_positionX(0.0f), m_positionY(0.0f), m_positionZ(0.0f), m_orientation(0.0f), m_lastUpdateTime(getMSTime())
|
||||
m_positionX(0.0f), m_positionY(0.0f), m_positionZ(0.0f), m_orientation(0.0f)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -2094,4 +2084,4 @@ bool WorldObject::IsControlledByPlayer() const
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue