Merge pull request #2972 from marvinkopf/PlayerAutoComplete
Tab completion for player names now case insensitive.
This commit is contained in:
commit
87a31e3a2d
|
@ -3583,7 +3583,7 @@ void cWorld::TabCompleteUserName(const AString & a_Text, AStringVector & a_Resul
|
||||||
PlayerName = (*itr)->GetCustomName();
|
PlayerName = (*itr)->GetCustomName();
|
||||||
}
|
}
|
||||||
|
|
||||||
AString::size_type Found = PlayerName.find(LastWord); // Try to find last word in playername
|
AString::size_type Found = StrToLower(PlayerName).find(StrToLower(LastWord)); // Try to find last word in playername
|
||||||
if (Found == AString::npos)
|
if (Found == AString::npos)
|
||||||
{
|
{
|
||||||
continue; // No match
|
continue; // No match
|
||||||
|
|
Loading…
Reference in New Issue