1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Store the maximum player file tries in a constant

This commit is contained in:
ShadowNinja 2014-06-23 15:55:47 -04:00
parent e491f8cd48
commit 089fc010ab
3 changed files with 7 additions and 2 deletions

View file

@ -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
*/