From 29cf32ce9bc45db02ea1013462132cd332882213 Mon Sep 17 00:00:00 2001 From: Xanadu Date: Sat, 6 Feb 2010 01:00:08 +0100 Subject: Modified the .dist command to display exact distances, too. --HG-- branch : trunk --- sql/updates/7306_world_trinity_string.sql | 1 + src/game/Level3.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 sql/updates/7306_world_trinity_string.sql 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; } -- cgit v1.2.3