summaryrefslogtreecommitdiff
path: root/indra/newview/llworldmap.h
diff options
context:
space:
mode:
authorAnsariel Hiller <Ansariel@users.noreply.github.com>2024-08-03 00:24:41 +0200
committerGitHub <noreply@github.com>2024-08-03 01:24:41 +0300
commit593479f33cecd81148a861c93c3f889e1ee5dc20 (patch)
tree0e24c4f05f99c5b6f843ad05789b8fb1e9a4bd8b /indra/newview/llworldmap.h
parent01688e52165b66962dcd13c78aa27c68fbfb2a8b (diff)
Display parcel name when clicking on a parcel on the world map (#2131)
Diffstat (limited to 'indra/newview/llworldmap.h')
-rw-r--r--indra/newview/llworldmap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llworldmap.h b/indra/newview/llworldmap.h
index fb9d140851..aab19a4d5f 100644
--- a/indra/newview/llworldmap.h
+++ b/indra/newview/llworldmap.h
@@ -128,9 +128,9 @@ public:
LLPointer<LLViewerFetchedTexture> getLandForSaleImage(); // Get the overlay image, fetch it if necessary
bool isName(const std::string& name) const;
- bool isDown() { return (mAccess == SIM_ACCESS_DOWN); }
- bool isPG() { return (mAccess <= SIM_ACCESS_PG); }
- bool isAdult() { return (mAccess == SIM_ACCESS_ADULT); }
+ bool isDown() const { return (mAccess == SIM_ACCESS_DOWN); }
+ bool isPG() const { return (mAccess <= SIM_ACCESS_PG); }
+ bool isAdult() const { return (mAccess == SIM_ACCESS_ADULT); }
// Debug only
void dump() const; // Print the region info to the standard output
@@ -157,6 +157,8 @@ public:
const LLSimInfo::item_info_list_t& getLandForSaleAdult() const { return mLandForSaleAdult; }
const LLSimInfo::item_info_list_t& getAgentLocation() const { return mAgentLocations; }
+ const U64& getHandle() const { return mHandle; }
+
private:
U64 mHandle; // This is a hash of the X and Y world coordinates of the SW corner of the sim
std::string mName; // Region name