Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
2ace3d7c
Commit
2ace3d7c
authored
13 years ago
by
Oz Linden
Browse files
Options
Downloads
Plain Diff
merge changes for storm-1128b
parents
818f12fb
838b38d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+2
-0
2 additions, 0 deletions
doc/contributions.txt
indra/newview/llfloaterworldmap.cpp
+17
-3
17 additions, 3 deletions
indra/newview/llfloaterworldmap.cpp
with
19 additions
and
3 deletions
doc/contributions.txt
+
2
−
0
View file @
2ace3d7c
...
...
@@ -425,6 +425,7 @@ Jonathan Yap
STORM-1094
STORM-1077
STORM-953
STORM-1128
STORM-956
STORM-1095
Kage Pixel
...
...
@@ -664,6 +665,7 @@ Robin Cornelius
STORM-960
STORM-1019
STORM-1095
STORM-1128
VWR-2488
VWR-9557
VWR-10579
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloaterworldmap.cpp
+
17
−
3
View file @
2ace3d7c
...
...
@@ -73,6 +73,7 @@
#include
"llslider.h"
#include
"message.h"
#include
"llwindow.h"
// copyTextToClipboard()
#include
<algorithm>
//---------------------------------------------------------------------------
// Constants
...
...
@@ -85,6 +86,16 @@ static const F32 MAP_ZOOM_TIME = 0.2f;
// Currently (01/26/09), this value allows the whole grid to be visible in a 1024x1024 window.
static
const
S32
MAX_VISIBLE_REGIONS
=
512
;
// It would be more logical to have this inside the method where it is used but to compile under gcc this
// struct has to be here.
struct
SortRegionNames
{
inline
bool
operator
()(
std
::
pair
<
U64
,
LLSimInfo
*>
const
&
_left
,
std
::
pair
<
U64
,
LLSimInfo
*>
const
&
_right
)
{
return
(
LLStringUtil
::
compareInsensitive
(
_left
.
second
->
getName
(),
_right
.
second
->
getName
())
<
0
);
}
};
enum
EPanDirection
{
PAN_UP
,
...
...
@@ -1483,10 +1494,13 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim)
S32
name_length
=
mCompletingRegionName
.
length
();
LLSD
match
;
S32
num_results
=
0
;
std
::
map
<
U64
,
LLSimInfo
*>::
const_iterator
it
;
for
(
it
=
LLWorldMap
::
getInstance
()
->
getRegionMap
().
begin
();
it
!=
LLWorldMap
::
getInstance
()
->
getRegionMap
().
end
();
++
it
)
std
::
vector
<
std
::
pair
<
U64
,
LLSimInfo
*>
>
sim_info_vec
(
LLWorldMap
::
getInstance
()
->
getRegionMap
().
begin
(),
LLWorldMap
::
getInstance
()
->
getRegionMap
().
end
());
std
::
sort
(
sim_info_vec
.
begin
(),
sim_info_vec
.
end
(),
SortRegionNames
());
for
(
std
::
vector
<
std
::
pair
<
U64
,
LLSimInfo
*>
>::
const_iterator
it
=
sim_info_vec
.
begin
();
it
!=
sim_info_vec
.
end
();
++
it
)
{
LLSimInfo
*
info
=
it
->
second
;
std
::
string
sim_name_lower
=
info
->
getName
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment