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

Opensim map tile support

parent 785a68d8
No related branches found
No related tags found
No related merge requests found
......@@ -3444,6 +3444,8 @@ bool process_login_success_response(U32& first_sim_size_x, U32& first_sim_size_y
{
// agent_access can be 'A', 'M', and 'PG'.
gAgent.setMaturity(text[0]);
U32 preferredMaturity = (U32)LLAgent::convertTextToMaturity(text[0]);
gSavedSettings.setU32("PreferredMaturity", preferredMaturity);
}
// this is the value of their preference setting for that content
......
......@@ -27,7 +27,9 @@
#include "llviewerprecompiledheaders.h"
#include "llworldmipmap.h"
#include "llagent.h"
#include "llviewercontrol.h" // LLControlGroup
#include "llviewerregion.h"
#include "llviewertexturelist.h"
#include "math.h" // log()
......@@ -181,7 +183,9 @@ LLPointer<LLViewerFetchedTexture> LLWorldMipmap::getObjectsTile(U32 grid_x, U32
LLPointer<LLViewerFetchedTexture> LLWorldMipmap::loadObjectsTile(U32 grid_x, U32 grid_y, S32 level)
{
// Get the grid coordinates
std::string imageurl = gSavedSettings.getString("CurrentMapServerURL") + llformat("map-%d-%d-%d-objects.jpg", level, grid_x, grid_y);
LLViewerRegion* regionp = gAgent.getRegion();
std::string imageurl = regionp != nullptr ? regionp->getMapServerURL() : gSavedSettings.getString("CurrentMapServerURL");
imageurl.append(llformat("map-%d-%d-%d-objects.jpg", level, grid_x, grid_y));
// DO NOT COMMIT!! DEBUG ONLY!!!
// Use a local jpeg for every tile to test map speed without S3 access
......
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