1
0

Bugfix Update [SEE DESC}

Added stained clay, coal block, and hardened clay Block IDs
Added stained clay and carpet block Metas
Fixed bug with sticky retract bailing out but not unsetting arm
Fixed autocomplete not working when not at the first character, fixes
#64
Added furnace recipes for hardened clay and coal and coal blocks
This commit is contained in:
Tiger Wang
2013-08-18 00:33:14 +01:00
parent a4d927c9e1
commit 679085b520
4 changed files with 57 additions and 8 deletions

View File

@@ -2635,12 +2635,19 @@ void cWorld::TabCompleteUserName(const AString & a_Text, AStringVector & a_Resul
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(), end = m_Players.end(); itr != end; ++itr)
{
if (NoCaseCompare((*itr)->GetName().substr(0, a_Text.length()), a_Text) != 0)
for (unsigned int selected = 0; selected < a_Text.length(); selected++ )
{
// Player name doesn't match
continue;
std::string playername ((*itr)->GetName());
std::string cut (a_Text.substr(selected, a_Text.length()));
std::size_t found = playername.find(cut);
if (found!=0)
{
//Player name doesn't match
continue;
}
a_Results.push_back((*itr)->GetName());
break;
}
a_Results.push_back((*itr)->GetName());
}
}