1
0
Fork 0

Merge pull request #2972 from marvinkopf/PlayerAutoComplete

Tab completion for player names now case insensitive.
This commit is contained in:
LogicParrot 2016-02-05 22:42:20 +02:00
commit 87a31e3a2d
1 changed files with 1 additions and 1 deletions

View File

@ -3583,7 +3583,7 @@ void cWorld::TabCompleteUserName(const AString & a_Text, AStringVector & a_Resul
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)
{
continue; // No match