diff options
author | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
commit | 1d96091d2a4f9a886a4d3cd80ec3c873d395dbdd (patch) | |
tree | 88589d294e7eb5ccabf7e667970b116e6a2670a6 /src/game/DynamicObject.cpp | |
parent | 0db1fd6c26b90241cfe039f2e2b3e35d10cb9cbd (diff) |
*Improvements in map managing.
--HG--
branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r-- | src/game/DynamicObject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp index c910e343bd7..80b0d91a1b8 100644 --- a/src/game/DynamicObject.cpp +++ b/src/game/DynamicObject.cpp @@ -72,8 +72,8 @@ void DynamicObject::RemoveFromWorld() bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, uint32 effIndex, float x, float y, float z, int32 duration, float radius ) { - WorldObject::_Create(guidlow, HIGHGUID_DYNAMICOBJECT, caster->GetPhaseMask()); SetMap(caster->GetMap()); + Relocate(x, y, z, 0); if(!IsPositionValid()) @@ -82,6 +82,8 @@ bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, uint32 return false; } + WorldObject::_Create(guidlow, HIGHGUID_DYNAMICOBJECT, caster->GetPhaseMask()); + SetEntry(spellId); SetFloatValue( OBJECT_FIELD_SCALE_X, 1 ); SetUInt64Value( DYNAMICOBJECT_CASTER, caster->GetGUID() ); |