Commit b6a80533 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fuzzy region name searching on the world map by beq janus

parent 7f762de3
......@@ -1630,8 +1630,6 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim)
LLScrollListCtrl *list = getChild<LLScrollListCtrl>("search_results");
list->operateOnAll(LLCtrlListInterface::OP_DELETE);
S32 name_length = mCompletingRegionName.length();
LLSD match;
S32 num_results = 0;
......@@ -1645,7 +1643,7 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim)
std::string sim_name_lower = info->getName();
LLStringUtil::toLower(sim_name_lower);
if (sim_name_lower.substr(0, name_length) == mCompletingRegionName)
if (sim_name_lower.find(mCompletingRegionName) != std::string::npos)
{
if (sim_name_lower == mCompletingRegionName)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment