diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llworldmap.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/linden/indra/newview/llworldmap.cpp b/linden/indra/newview/llworldmap.cpp index 28ae94a..231f5dc 100644 --- a/linden/indra/newview/llworldmap.cpp +++ b/linden/indra/newview/llworldmap.cpp | |||
@@ -160,6 +160,11 @@ void LLWorldMap::reset() | |||
160 | 160 | ||
161 | mNeighborMapWidth = 0; | 161 | mNeighborMapWidth = 0; |
162 | mNeighborMapHeight = 0; | 162 | mNeighborMapHeight = 0; |
163 | |||
164 | for (S32 i=0; i<MAP_SIM_IMAGE_TYPES; i++) | ||
165 | { | ||
166 | mMapLayers[i].clear(); | ||
167 | } | ||
163 | } | 168 | } |
164 | 169 | ||
165 | void LLWorldMap::eraseItems() | 170 | void LLWorldMap::eraseItems() |
@@ -172,7 +177,6 @@ void LLWorldMap::eraseItems() | |||
172 | mInfohubs.clear(); | 177 | mInfohubs.clear(); |
173 | mPGEvents.clear(); | 178 | mPGEvents.clear(); |
174 | mMatureEvents.clear(); | 179 | mMatureEvents.clear(); |
175 | mPopular.clear(); | ||
176 | mLandForSale.clear(); | 180 | mLandForSale.clear(); |
177 | mClassifieds.clear(); | 181 | mClassifieds.clear(); |
178 | } | 182 | } |
@@ -299,12 +303,6 @@ void LLWorldMap::setCurrentLayer(S32 layer, bool request_layer) | |||
299 | sendItemRequest(MAP_ITEM_MATURE_EVENT); | 303 | sendItemRequest(MAP_ITEM_MATURE_EVENT); |
300 | } | 304 | } |
301 | 305 | ||
302 | if (mPopular.size() == 0) | ||
303 | { | ||
304 | // Request for popular | ||
305 | sendItemRequest(MAP_ITEM_POPULAR); | ||
306 | } | ||
307 | |||
308 | if (mLandForSale.size() == 0) | 306 | if (mLandForSale.size() == 0) |
309 | { | 307 | { |
310 | // Request for Land For Sale | 308 | // Request for Land For Sale |
@@ -763,12 +761,6 @@ void LLWorldMap::processMapItemReply(LLMessageSystem* msg, void**) | |||
763 | } | 761 | } |
764 | break; | 762 | break; |
765 | } | 763 | } |
766 | case MAP_ITEM_POPULAR: // popular | ||
767 | { | ||
768 | new_item.mPosGlobal.mdV[VZ] = (F64)extra2; | ||
769 | LLWorldMap::getInstance()->mPopular.push_back(new_item); | ||
770 | break; | ||
771 | } | ||
772 | case MAP_ITEM_LAND_FOR_SALE: // land for sale | 764 | case MAP_ITEM_LAND_FOR_SALE: // land for sale |
773 | { | 765 | { |
774 | new_item.mToolTip = llformat("%d sq. m. L$%d", new_item.mExtra, new_item.mExtra2); | 766 | new_item.mToolTip = llformat("%d sq. m. L$%d", new_item.mExtra, new_item.mExtra2); |