summaryrefslogtreecommitdiff
path: root/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-04 15:52:20 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-04 15:52:20 -0800
commit10614ebd917f4dbb8a16e8a0473409c42f8d7608 (patch)
treedf96de9e1feef6ac7b464e048ca280c77f5c88c6 /indra/newview/llstartup.cpp
parent3fd7752f1289f67db93e76833cc9804d057bc3c8 (diff)
Hijaking the land status messaging for temporary development of the pathfinding linksets floater.
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r--indra/newview/llstartup.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 36d6ff3ef2..2e4b8cd2c5 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -186,6 +186,12 @@
#include "llappearancemgr.h"
#include "llavatariconctrl.h"
#include "llvoicechannel.h"
+// Uncomment the following define to enable hijaking of the LandStatReply message to test the pathfinding linkset floater.
+// For development purposes only until the pathfinding linksets service is built on the server-side.
+//#define XXX_STINSON_PATHFINDING_HIJAK_XXX
+#ifdef XXX_STINSON_PATHFINDING_HIJAK_XXX
+#include "llfloaterpathfindinglinksets.h"
+#endif // XXX_STINSON_PATHFINDING_HIJAK_XXX
#include "lllogin.h"
#include "llevents.h"
@@ -2480,7 +2486,11 @@ void register_viewer_callbacks(LLMessageSystem* msg)
msg->setHandlerFunc("ParcelObjectOwnersReply", LLPanelLandObjects::processParcelObjectOwnersReply);
msg->setHandlerFunc("InitiateDownload", process_initiate_download);
+#ifdef XXX_STINSON_PATHFINDING_HIJAK_XXX
+ msg->setHandlerFunc("LandStatReply", LLFloaterPathfindingLinksets::handleLandStatReply); // XXX stinson
+#else // XXX_STINSON_PATHFINDING_HIJAK_XXX
msg->setHandlerFunc("LandStatReply", LLFloaterTopObjects::handle_land_reply);
+#endif // XXX_STINSON_PATHFINDING_HIJAK_XXX
msg->setHandlerFunc("GenericMessage", process_generic_message);
msg->setHandlerFuncFast(_PREHASH_FeatureDisabled, process_feature_disabled_message);