aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-06-23 15:55:47 -0400
committerShadowNinja <shadowninja@minetest.net>2014-06-23 15:55:47 -0400
commit089fc010abe439aea154813e3e31bc9477a84308 (patch)
tree20f735850b2a0718e79a7118076a27995ac14cf0 /src/environment.cpp
parente491f8cd485f5602c056b8b6c5e0c8c395e4a633 (diff)
downloadminetest-089fc010abe439aea154813e3e31bc9477a84308.tar.gz
minetest-089fc010abe439aea154813e3e31bc9477a84308.tar.bz2
minetest-089fc010abe439aea154813e3e31bc9477a84308.zip
Store the maximum player file tries in a constant
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index d068aa788..845928a20 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -455,7 +455,7 @@ Player *ServerEnvironment::loadPlayer(const std::string &playername)
RemotePlayer testplayer(m_gamedef);
std::string path = players_path + playername;
- for (u32 i = 0; i < 1000; i++) {
+ for (u32 i = 0; i < PLAYER_FILE_ALTERNATE_TRIES; i++) {
// Open file and deserialize
std::ifstream is(path.c_str(), std::ios_base::binary);
if (!is.good()) {