diff options
| author | megamage <none@none> | 2009-06-11 00:45:59 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-11 00:45:59 -0500 |
| commit | 9d670fe6f5757430d575081db9a6e5273400330d (patch) | |
| tree | 9148b75f310fda0bf082be70731abfca03e84f20 /src/game/Corpse.cpp | |
| parent | 9c70e3d89bbace30bfabcf8c42323472ad1e4c4d (diff) | |
*Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.
Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Corpse.cpp')
| -rw-r--r-- | src/game/Corpse.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/Corpse.cpp b/src/game/Corpse.cpp index 5ed90eaf411..9fe54be1bec 100644 --- a/src/game/Corpse.cpp +++ b/src/game/Corpse.cpp @@ -32,8 +32,8 @@ Corpse::Corpse(CorpseType type) : WorldObject() { m_objectType |= TYPEMASK_CORPSE; m_objectTypeId = TYPEID_CORPSE; - // 2.3.2 - 0x58 - m_updateFlag = (UPDATEFLAG_LOWGUID | UPDATEFLAG_HIGHGUID | UPDATEFLAG_HAS_POSITION); + + m_updateFlag = (UPDATEFLAG_HIGHGUID | UPDATEFLAG_HAS_POSITION | UPDATEFLAG_POSITION); m_valuesCount = CORPSE_END; @@ -88,10 +88,6 @@ bool Corpse::Create( uint32 guidlow, Player *owner) } SetFloatValue( OBJECT_FIELD_SCALE_X, 1 ); - SetFloatValue( CORPSE_FIELD_POS_X, GetPositionX() ); - SetFloatValue( CORPSE_FIELD_POS_Y, GetPositionY() ); - SetFloatValue( CORPSE_FIELD_POS_Z, GetPositionZ() ); - SetFloatValue( CORPSE_FIELD_FACING, GetOrientation() ); SetUInt64Value( CORPSE_FIELD_OWNER, owner->GetGUID() ); m_grid = Trinity::ComputeGridPair(GetPositionX(), GetPositionY()); |
