mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Modified the .dist command to display exact distances, too.
--HG-- branch : trunk
This commit is contained in:
1
sql/updates/7306_world_trinity_string.sql
Normal file
1
sql/updates/7306_world_trinity_string.sql
Normal 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;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user