fix datafile reading problems for versions 350 and 351

This commit is contained in:
Enno Rehling 2016-02-29 14:57:01 +01:00 committed by Enno Rehling
parent bb03517619
commit 197241df0d
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 3 #define VERSION_MAJOR 3
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_BUILD 4 #define VERSION_BUILD 5

View File

@ -318,7 +318,7 @@ bool checkpasswd(const faction * f, const char *passwd)
{ {
if (!passwd) return false; if (!passwd) return false;
if (password_verify(f->_password, passwd) == VERIFY_FAIL) { if (f->_password && password_verify(f->_password, passwd) == VERIFY_FAIL) {
log_warning("password check failed: %s", factionname(f)); log_warning("password check failed: %s", factionname(f));
return false; return false;
} }

View File

@ -32,7 +32,7 @@
#define EXPLICIT_CURSE_ISNEW_VERSION 347 /* CURSE_ISNEW is not reset in read/write, but in age() */ #define EXPLICIT_CURSE_ISNEW_VERSION 347 /* CURSE_ISNEW is not reset in read/write, but in age() */
#define SPELL_LEVEL_VERSION 348 /* f->max_spelllevel gets stored, not calculated */ #define SPELL_LEVEL_VERSION 348 /* f->max_spelllevel gets stored, not calculated */
#define OWNER_3_VERSION 349 /* regions store last owner, not last alliance */ #define OWNER_3_VERSION 349 /* regions store last owner, not last alliance */
#define ATTRIBOWNER_VERSION 350 /* all attrib_type functions know who owns the attribute */ #define ATTRIBOWNER_VERSION 351 /* all attrib_type functions know who owns the attribute */
#define BADCRYPT_VERSION 351 /* passwords are encrypted, poorly */ #define BADCRYPT_VERSION 351 /* passwords are encrypted, poorly */
#define CRYPT_VERSION 352 /* passwords are encrypted */ #define CRYPT_VERSION 352 /* passwords are encrypted */
#define RELEASE_VERSION ATTRIBOWNER_VERSION /* current datafile */ #define RELEASE_VERSION ATTRIBOWNER_VERSION /* current datafile */