From 089fc010abe439aea154813e3e31bc9477a84308 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 23 Jun 2014 15:55:47 -0400 Subject: Store the maximum player file tries in a constant --- src/constants.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/constants.h') 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 */ -- cgit v1.2.3