fixed /tp command
made cWorld::DoWithPlayer case insensitive git-svn-id: http://mc-server.googlecode.com/svn/trunk@662 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -1534,7 +1534,7 @@ bool cWorld::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_
|
||||
cCSLock Lock(m_CSPlayers);
|
||||
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
|
||||
{
|
||||
if ((*itr)->GetName() == a_PlayerName)
|
||||
if (iequals((*itr)->GetName(), a_PlayerName))
|
||||
{
|
||||
a_Callback.Item(*itr);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user