diff options
author | maximius <none@none> | 2009-08-26 21:48:38 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-08-26 21:48:38 -0700 |
commit | 35c57db00aaaee504baeaa243640eab5f5172f27 (patch) | |
tree | ba83a916fb51f6056343b102ac120a6e34292a58 | |
parent | 7cb2864d828d0f1f2ccd2fe15f23fa2ad28ae77e (diff) |
*Make .namego and .goname inherit phase from destination player
--HG--
branch : trunk
-rw-r--r-- | src/game/Level1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |