From 35c57db00aaaee504baeaa243640eab5f5172f27 Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 26 Aug 2009 21:48:38 -0700 Subject: *Make .namego and .goname inherit phase from destination player --HG-- branch : trunk --- src/game/Level1.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/Level1.cpp') diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index d2eeb42971c..9092ffc17f2 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -865,6 +865,7 @@ bool ChatHandler::HandleNamegoCommand(const char* args) float x,y,z; m_session->GetPlayer()->GetClosePoint(x,y,z,target->GetObjectSize()); target->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,target->GetOrientation()); + target->SetPhaseMask(m_session->GetPlayer()->GetPhaseMask(), true); } else { @@ -1002,6 +1003,7 @@ bool ChatHandler::HandleGonameCommand(const char* args) target->GetContactPoint(_player,x,y,z); _player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAngle(target), TELE_TO_GM_MODE); + _player->SetPhaseMask(target->GetPhaseMask(), true); } else { -- cgit v1.2.3