diff options
author | Xanadu <none@none> | 2010-02-06 01:00:08 +0100 |
---|---|---|
committer | Xanadu <none@none> | 2010-02-06 01:00:08 +0100 |
commit | 29cf32ce9bc45db02ea1013462132cd332882213 (patch) | |
tree | fe3227af8716349c3473317ddd4f85844d6a7c94 | |
parent | d536614df85c57e6e9ef6344156798e23d6418d7 (diff) |
Modified the .dist command to display exact distances, too.
--HG--
branch : trunk
-rw-r--r-- | sql/updates/7306_world_trinity_string.sql | 1 | ||||
-rw-r--r-- | src/game/Level3.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/updates/7306_world_trinity_string.sql b/sql/updates/7306_world_trinity_string.sql new file mode 100644 index 00000000000..c1b15a3797d --- /dev/null +++ b/sql/updates/7306_world_trinity_string.sql @@ -0,0 +1 @@ +UPDATE `trinity_string` SET `content_default` = 'The distance is: (3D) %f (2D) %f (Exact 3D) %f (Exact 2D) %f yards.' WHERE `entry`=503; diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 864f827df7d..aa146210a77 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -4189,8 +4189,7 @@ bool ChatHandler::HandleGetDistanceCommand(const char *args) } } - PSendSysMessage(LANG_DISTANCE, m_session->GetPlayer()->GetDistance(obj),m_session->GetPlayer()->GetDistance2d(obj)); - + PSendSysMessage(LANG_DISTANCE, m_session->GetPlayer()->GetDistance(obj), m_session->GetPlayer()->GetDistance2d(obj), m_session->GetPlayer()->GetExactDist(obj), m_session->GetPlayer()->GetExactDist2d(obj)); return true; } |