summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-06-05 16:31:32 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-06-05 16:31:32 -0700
commitcf5cf32ebf3a8eccbaa9e8c092fd23b357a68727 (patch)
tree23f2815871bcc26e8af235c6741a1259d0b87b89
parent64f4246f17b8270870fae84eca26e18a567a2174 (diff)
ACME-471: Now using the actual map top-down image for the checked in location.
-rwxr-xr-xindra/newview/llviewermenu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 471db8d8fc..e8c7e0cfdc 100755
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -5995,8 +5995,12 @@ void handle_facebook_checkin()
std::string region_name = gAgent.getRegion()->getName();
std::string description;
LLAgentUI::buildLocationString(description, LLAgentUI::LOCATION_FORMAT_NORMAL_COORDS, gAgent.getPositionAgent());
+ LLVector3d center_agent = gAgent.getRegion()->getCenterGlobal();
+ int x_pos = center_agent[0] / 256.0;
+ int y_pos = center_agent[1] / 256.0;
+ std::string locationMap = llformat("http://map.secondlife.com/map-1-%d-%d-objects.jpg", x_pos, y_pos);
- LLFacebookConnect::instance().postCheckin(slurl_string, region_name, description, "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQDL4jdC_vCh0ow-QCXZjN-WNojEXWiz0APEa6Qhpl8cxawjkoC7w", "");
+ LLFacebookConnect::instance().postCheckin(slurl_string, region_name, description, locationMap, "");
}
//bool is_facebook_connected();