From 8b4a29cbd3b367375b2964fd2e54001e427eedc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Wed, 8 Jan 2020 22:31:18 -0500 Subject: [PATCH] Break simulator autopilot out into its own function --- indra/newview/llviewermenu.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index ccd0d0e4a..5d9640b73 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -2845,9 +2845,8 @@ class LLObjectPFLinksetsSelected : public view_listener_t // -void handle_go_to(const LLVector3d& pos) +void simulator_autopilot(const LLVector3d& pos) { - // try simulator autopilot std::vector strings; std::string val; val = llformat("%.9g", pos.mdV[VX]); @@ -2857,6 +2856,12 @@ void handle_go_to(const LLVector3d& pos) val = llformat("%.9g", pos.mdV[VZ]); strings.push_back(val); send_generic_message("autopilot", strings); +} + +void handle_go_to(const LLVector3d& pos) +{ + // try simulator autopilot + simulator_autopilot(pos); LLViewerParcelMgr::getInstance()->deselectLand();