mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11250] Fix create position for summoned creatures.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
789f513ede
commit
167ec0df42
2 changed files with 2 additions and 2 deletions
|
|
@ -1653,7 +1653,7 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
|
||||||
if (GetTypeId()==TYPEID_PLAYER)
|
if (GetTypeId()==TYPEID_PLAYER)
|
||||||
team = ((Player*)this)->GetTeam();
|
team = ((Player*)this)->GetTeam();
|
||||||
|
|
||||||
CreatureCreatePos pos(GetMap(), x, y, x, ang, GetPhaseMask());
|
CreatureCreatePos pos(GetMap(), x, y, z, ang, GetPhaseMask());
|
||||||
|
|
||||||
if (x == 0.0f && y == 0.0f && z == 0.0f)
|
if (x == 0.0f && y == 0.0f && z == 0.0f)
|
||||||
pos = CreatureCreatePos(this, GetOrientation(), CONTACT_DISTANCE, ang);
|
pos = CreatureCreatePos(this, GetOrientation(), CONTACT_DISTANCE, ang);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11249"
|
#define REVISION_NR "11250"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue