FIRE-9677: Make z component in gtp command optional and use current avatar height if omitted

Ansariel 2014-04-10 13:56:22 +02:00
parent e48441789c
commit 414faf61fe
1 changed files with 5 additions and 1 deletions

View File

@ -467,8 +467,12 @@ bool cmd_line_chat(std::string revised_text, EChatType type, bool from_gesture)
if(command == std::string(sFSCmdLinePos))
{
F32 x, y, z;
if (i >> x && i >> y && i >> z)
if (i >> x && i >> y)
{
if (!(i >> z))
{
z = gAgent.getPositionGlobal().mdV[VZ];
}
LLViewerRegion* agentRegionp = gAgent.getRegion();
if (agentRegionp)
{