aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorForesterDev <11771800+ForesterDev@users.noreply.github.com>2018-10-11 13:36:35 +0400
committerShauren <shauren.trinity@gmail.com>2018-10-11 11:36:35 +0200
commit1e99f98327189c00e9e5e552d332120f12d38f03 (patch)
treee7c90d0f9361610c27add7ba448053d8360f50bb /src
parent82a1448705257db0b3edcffdc9a65008224bc371 (diff)
Core/Commands: fix .appear command provide wrong undermap position (#22624)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp
index c1daab7de13..3548de93451 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -453,7 +453,7 @@ public:
// to point to see at target with same orientation
float x, y, z;
- target->GetContactPoint(_player, x, y, z);
+ target->GetClosePoint(x, y, z, _player->GetCombatReach(), 1.0f);
_player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAbsoluteAngle(target), TELE_TO_GM_MODE);
_player->SetPhaseMask(target->GetPhaseMask(), true);