mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
ClientInterface::getClientIDs doesn't need a std::list. Use a std::vector for better perfs
This commit is contained in:
parent
7e088fdfe3
commit
2066655aae
4 changed files with 57 additions and 71 deletions
|
@ -388,7 +388,7 @@ public:
|
|||
void step(float dtime);
|
||||
|
||||
/* get list of active client id's */
|
||||
std::list<u16> getClientIDs(ClientState min_state=CS_Active);
|
||||
std::vector<u16> getClientIDs(ClientState min_state=CS_Active);
|
||||
|
||||
/* get list of client player names */
|
||||
std::vector<std::string> getPlayerNames();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue