[VarRegions] Fix copy slurl on map to take the fmod of the x and y against the width of the region in question, instead of 256
This commit is contained in:
@@ -875,6 +875,11 @@ void LLFloaterWorldMap::updateLocation()
|
||||
// [/RLVa:KB]
|
||||
// if ( gotSimName )
|
||||
{
|
||||
// Singu Note: Var region support for SLURLs
|
||||
const LLSimInfo* sim = LLWorldMap::getInstance()->simInfoFromPosGlobal(pos_global);
|
||||
const F64 size(sim ? sim->getSizeX() : 256);
|
||||
pos_global[0] = fmod(pos_global[0], size);
|
||||
pos_global[1] = fmod(pos_global[1], size);
|
||||
mSLURL = LLSLURL(sim_name, pos_global);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user