[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:
Inusaito Sayori
2013-09-27 13:41:45 -04:00
parent fe29521298
commit da38d4bc48
2 changed files with 9 additions and 4 deletions

View File

@@ -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