1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Optimize ClientIface::getPlayerNames(): return const ref instead a copy of all names

This commit is contained in:
Loic Blot
2016-10-08 16:42:09 +02:00
committed by Ner'zhul
parent fd5a130b86
commit edba6e50d9
3 changed files with 4 additions and 10 deletions

View File

@@ -627,12 +627,6 @@ std::vector<u16> ClientInterface::getClientIDs(ClientState min_state)
return reply;
}
std::vector<std::string> ClientInterface::getPlayerNames()
{
return m_clients_names;
}
void ClientInterface::step(float dtime)
{
m_print_info_timer += dtime;