mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10110] Add function Get/SetObjectScale and update code where scale is set.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
bb3b0bd598
commit
2375a1cb71
14 changed files with 35 additions and 16 deletions
|
|
@ -122,6 +122,14 @@ void Object::_Create( uint32 guidlow, uint32 entry, HighGuid guidhigh )
|
|||
m_PackGUID.Set(guid);
|
||||
}
|
||||
|
||||
void Object::SetObjectScale(float newScale)
|
||||
{
|
||||
if (newScale <= 0.0f)
|
||||
newScale = DEFAULT_OBJECT_SCALE;
|
||||
|
||||
SetFloatValue(OBJECT_FIELD_SCALE_X, newScale);
|
||||
}
|
||||
|
||||
void Object::BuildMovementUpdateBlock(UpdateData * data, uint16 flags ) const
|
||||
{
|
||||
ByteBuffer buf(500);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue