Skip to content
Snippets Groups Projects
Commit cc1e6e6c authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix mapto command

parent 8711d1a7
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@
#include "lltrans.h"
#include "llviewercontrol.h"
#include "llviewermessage.h"
#include "llviewernetwork.h"
#include "llviewerobjectlist.h"
#include "llviewerparcelmgr.h"
#include "llviewerregion.h"
......@@ -202,7 +203,7 @@ bool ALChatCommand::parseCommand(std::string data)
params.append(fmodf(static_cast<F32>(pos.mdV[VX]), REGION_WIDTH_METERS));
params.append(fmodf(static_cast<F32>(pos.mdV[VY]), REGION_WIDTH_METERS));
params.append(static_cast<F32>(pos.mdV[VZ]));
LLCommandDispatcher::dispatch("teleport", params, LLSD(), std::string(), nullptr, "clicked", true);
LLCommandDispatcher::dispatch("teleport", params, LLSD(), LLGridManager::getInstance()->getGrid(), nullptr, "clicked", true);
return true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment