mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +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
|
@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "constants.h"
|
||||
#include "settings.h"
|
||||
#include "lighting.h"
|
||||
#include <string>
|
||||
|
||||
class Client;
|
||||
class Environment;
|
||||
|
@ -63,7 +64,8 @@ private:
|
|||
class LocalPlayer : public Player
|
||||
{
|
||||
public:
|
||||
LocalPlayer(Client *client, const char *name);
|
||||
|
||||
LocalPlayer(Client *client, const std::string &name);
|
||||
virtual ~LocalPlayer();
|
||||
|
||||
// Initialize hp to 0, so that no hearts will be shown if server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue