summaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-08-03 16:19:07 -0400
committerShadowNinja <shadowninja@minetest.net>2014-10-01 18:44:36 -0400
commitcd0df0d5e7051763c7ac6ca20a0f2960e0dda83a (patch)
treec382f9e7102841356dc22c81cc5c634e9943b2e9 /src/environment.cpp
parentb37bff72f17c46b3bf6ba55a4084edf58bd3df78 (diff)
downloadminetest-cd0df0d5e7051763c7ac6ca20a0f2960e0dda83a.tar.gz
minetest-cd0df0d5e7051763c7ac6ca20a0f2960e0dda83a.tar.bz2
minetest-cd0df0d5e7051763c7ac6ca20a0f2960e0dda83a.zip
Simplify player modification checks
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index 66898f012..4106ecdf5 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -449,11 +449,11 @@ Player *ServerEnvironment::loadPlayer(const std::string &playername)
bool newplayer = false;
bool found = false;
if (!player) {
- player = new RemotePlayer(m_gamedef);
+ player = new RemotePlayer(m_gamedef, playername.c_str());
newplayer = true;
}
- RemotePlayer testplayer(m_gamedef);
+ RemotePlayer testplayer(m_gamedef, "");
std::string path = players_path + playername;
for (u32 i = 0; i < PLAYER_FILE_ALTERNATE_TRIES; i++) {
// Open file and deserialize