Modified the .dist command to display exact distances, too.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-02-06 01:00:08 +01:00
parent d536614df8
commit 29cf32ce9b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;
}