summaryrefslogtreecommitdiff
path: root/src/constants.h
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/constants.h
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/constants.h')
-rw-r--r--src/constants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/constants.h b/src/constants.h
index 53ef1801e..526e44159 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -89,6 +89,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// Maximum hit points of a player
#define PLAYER_MAX_HP 20
+// Number of different files to try to save a player to if the first fails
+// (because of a case-insensitive filesystem)
+// TODO: Use case-insensitive player names instead of this hack.
+#define PLAYER_FILE_ALTERNATE_TRIES 1000
+
/*
* GUI related things
*/