diff options
author | megamage <none@none> | 2009-02-24 21:14:00 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-24 21:14:00 -0600 |
commit | 5fda4992661583d7b3cf26ff50dc1b3d8ceedf26 (patch) | |
tree | 3aecfaae1a4d0faf9294497cba6103f307403569 /src/game/Debugcmds.cpp | |
parent | 65a933c6c15faa9c4243aa729f42b2c458f0c9ea (diff) | |
parent | 8770a90bc6389d123a2716079bde40f43fc26357 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Debugcmds.cpp')
-rw-r--r-- | src/game/Debugcmds.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Debugcmds.cpp b/src/game/Debugcmds.cpp index 4d8e8f8fd77..6033a49e5ec 100644 --- a/src/game/Debugcmds.cpp +++ b/src/game/Debugcmds.cpp @@ -195,13 +195,21 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* /*args*/) data.append(unit->GetPackGUID()); } else if(type == "myguid") + { data.append(player->GetPackGUID()); + } else if(type == "pos") { data << unit->GetPositionX(); data << unit->GetPositionY(); data << unit->GetPositionZ(); } + else if(type == "mypos") + { + data << player->GetPositionX(); + data << player->GetPositionY(); + data << player->GetPositionZ(); + } else { sLog.outDebug("Sending opcode: unknown type '%s'", type.c_str()); |