From 0be125aa07a9d6cebf47b81fc23eb61cc96cd7b6 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 1 Feb 2013 19:59:58 +0000 Subject: Simplified cWorld::FindAndDoWithPlayer() It should still work the same - call the callback for the player with the most similar name. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1184 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/World.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/World.h') diff --git a/source/World.h b/source/World.h index d3ed37aa3..e30fa7981 100644 --- a/source/World.h +++ b/source/World.h @@ -180,7 +180,7 @@ public: bool DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << /// Finds a player from a partial or complete player name and calls the callback - case-insensitive - bool FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << + bool FindAndDoWithPlayer(const AString & a_PlayerNameHint, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << unsigned int GetNumPlayers(); // tolua_export -- cgit v1.2.3