aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXanadu <none@none>2010-02-06 01:00:08 +0100
committerXanadu <none@none>2010-02-06 01:00:08 +0100
commit29cf32ce9bc45db02ea1013462132cd332882213 (patch)
treefe3227af8716349c3473317ddd4f85844d6a7c94 /src
parentd536614df85c57e6e9ef6344156798e23d6418d7 (diff)
Modified the .dist command to display exact distances, too.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Level3.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}