mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Switch player names to std::string
This commit is contained in:
parent
603eb57943
commit
cc8e7a569e
18 changed files with 39 additions and 36 deletions
|
@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "localplayer.h"
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#include "mtevent.h"
|
||||
#include "collision.h"
|
||||
#include "nodedef.h"
|
||||
|
@ -75,7 +76,7 @@ void PlayerSettings::settingsChangedCallback(const std::string &name, void *data
|
|||
LocalPlayer
|
||||
*/
|
||||
|
||||
LocalPlayer::LocalPlayer(Client *client, const char *name):
|
||||
LocalPlayer::LocalPlayer(Client *client, const std::string &name):
|
||||
Player(name, client->idef()),
|
||||
m_client(client)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue