remove a 3.6 save file compat kludge and clear another warning
This commit is contained in:
@@ -70,21 +70,6 @@ struct flag {
|
||||
* and get rid of these comments...) once 3.6.0 savefile compatibility
|
||||
* eventually ends.
|
||||
*/
|
||||
#ifndef SKIP_BOOLEAN
|
||||
/* this is the normal configuration; assigning a character constant
|
||||
for a normal letter to an 'xchar' variable should always work even
|
||||
if 'char' is unsigned since character constants are actually 'int'
|
||||
and letters are within the range where signedness shouldn't matter */
|
||||
xchar sortloot; /* 'n'=none, 'l'=loot (pickup), 'f'=full ('l'+invent) */
|
||||
#else
|
||||
/* with SKIP_BOOLEAN, we have no idea what underlying type is being
|
||||
used, other than it isn't 'xchar' (although its size might match
|
||||
that) or a bitfield (because it must be directly addressable);
|
||||
it's probably either 'char' for compactness or 'int' for access,
|
||||
but we don't know which and it might be something else anyway;
|
||||
flip a coin here and guess 'char' for compactness */
|
||||
char sortloot; /* 'n'=none, 'l'=loot (pickup), 'f'=full ('l'+invent) */
|
||||
#endif
|
||||
boolean sortpack; /* sorted inventory */
|
||||
boolean sparkle; /* show "resisting" special FX (Scott Bigham) */
|
||||
boolean standout; /* use standout for --More-- */
|
||||
@@ -108,6 +93,7 @@ struct flag {
|
||||
#define PARANOID_WERECHANGE 0x0100
|
||||
int pickup_burden; /* maximum burden before prompt */
|
||||
int pile_limit; /* controls feedback when walking over objects */
|
||||
char sortloot; /* 'n'=none, 'l'=loot (pickup), 'f'=full ('l'+invent) */
|
||||
char inv_order[MAXOCLASSES];
|
||||
char pickup_types[MAXOCLASSES];
|
||||
#define NUM_DISCLOSURE_OPTIONS 6 /* i,a,v,g,c,o (decl.c) */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 sfproto.h Sat Jun 22 22:53:12 2019 */
|
||||
/* NetHack 3.7 sfproto.h Tue Jun 25 09:57:33 2019 */
|
||||
/* Copyright (c) NetHack Development Team 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
|
||||
13
src/sfdata.c
13
src/sfdata.c
@@ -12,8 +12,8 @@
|
||||
#include "wintype.h"
|
||||
#include "sfproto.h"
|
||||
|
||||
#define BUILD_DATE "Tue Jun 25 01:06:17 2019"
|
||||
#define BUILD_TIME (1561439177L)
|
||||
#define BUILD_DATE "Tue Jun 25 09:57:33 2019"
|
||||
#define BUILD_TIME (1561471053L)
|
||||
|
||||
#define NHTYPE_SIMPLE 1
|
||||
#define NHTYPE_COMPLEX 2
|
||||
@@ -746,8 +746,6 @@ int cnt;
|
||||
sfo_boolean(nhfp, &d_flag->showexp, parent, "showexp", 1); /* (boolean) */
|
||||
sfo_boolean(nhfp, &d_flag->showscore, parent, "showscore", 1);/* (boolean) */
|
||||
sfo_boolean(nhfp, &d_flag->silent, parent, "silent", 1); /* (boolean) */
|
||||
sfo_xchar(nhfp, &d_flag->sortloot, parent, "sortloot", 1); /* (xchar) */
|
||||
sfo_char(nhfp, &d_flag->sortloot, parent, "sortloot", 1); /* (char) */
|
||||
sfo_boolean(nhfp, &d_flag->sortpack, parent, "sortpack", 1); /* (boolean) */
|
||||
sfo_boolean(nhfp, &d_flag->sparkle, parent, "sparkle", 1); /* (boolean) */
|
||||
sfo_boolean(nhfp, &d_flag->standout, parent, "standout", 1); /* (boolean) */
|
||||
@@ -761,6 +759,7 @@ int cnt;
|
||||
sfo_unsigned(nhfp, &d_flag->paranoia_bits, parent, "paranoia_bits", 1);/* (unsigned) */
|
||||
sfo_int(nhfp, &d_flag->pickup_burden, parent, "pickup_burden", 1);/* (int) */
|
||||
sfo_int(nhfp, &d_flag->pile_limit, parent, "pile_limit", 1); /* (int) */
|
||||
sfo_char(nhfp, &d_flag->sortloot, parent, "sortloot", 1); /* (char) */
|
||||
sfo_char(nhfp, d_flag->inv_order, parent, "inv_order", MAXOCLASSES);/* (char) */
|
||||
sfo_char(nhfp, d_flag->pickup_types, parent, "pickup_types", MAXOCLASSES);/* (char) */
|
||||
sfo_char(nhfp, d_flag->end_disclose, parent, "end_disclose", NUM_DISCLOSURE_OPTIONS + 1);/* (char) */
|
||||
@@ -3137,8 +3136,6 @@ int cnt;
|
||||
sfi_boolean(nhfp, &d_flag->showexp, parent, "showexp", 1);
|
||||
sfi_boolean(nhfp, &d_flag->showscore, parent, "showscore", 1);
|
||||
sfi_boolean(nhfp, &d_flag->silent, parent, "silent", 1);
|
||||
sfi_xchar(nhfp, &d_flag->sortloot, parent, "sortloot", 1);
|
||||
sfi_char(nhfp, &d_flag->sortloot, parent, "sortloot", 1);
|
||||
sfi_boolean(nhfp, &d_flag->sortpack, parent, "sortpack", 1);
|
||||
sfi_boolean(nhfp, &d_flag->sparkle, parent, "sparkle", 1);
|
||||
sfi_boolean(nhfp, &d_flag->standout, parent, "standout", 1);
|
||||
@@ -3152,6 +3149,7 @@ int cnt;
|
||||
sfi_unsigned(nhfp, &d_flag->paranoia_bits, parent, "paranoia_bits", 1);
|
||||
sfi_int(nhfp, &d_flag->pickup_burden, parent, "pickup_burden", 1);
|
||||
sfi_int(nhfp, &d_flag->pile_limit, parent, "pile_limit", 1);
|
||||
sfi_char(nhfp, &d_flag->sortloot, parent, "sortloot", 1);
|
||||
sfi_char(nhfp, d_flag->inv_order, parent, "inv_order", MAXOCLASSES);
|
||||
sfi_char(nhfp, d_flag->pickup_types, parent, "pickup_types", MAXOCLASSES);
|
||||
sfi_char(nhfp, d_flag->end_disclose, parent, "end_disclose", NUM_DISCLOSURE_OPTIONS + 1);
|
||||
@@ -5499,8 +5497,6 @@ const char *critical_members[] = {
|
||||
"struct flag:showexp:boolean",
|
||||
"struct flag:showscore:boolean",
|
||||
"struct flag:silent:boolean",
|
||||
"struct flag:sortloot:xchar",
|
||||
"struct flag:sortloot:char",
|
||||
"struct flag:sortpack:boolean",
|
||||
"struct flag:sparkle:boolean",
|
||||
"struct flag:standout:boolean",
|
||||
@@ -5514,6 +5510,7 @@ const char *critical_members[] = {
|
||||
"struct flag:paranoia_bits:unsigned",
|
||||
"struct flag:pickup_burden:int",
|
||||
"struct flag:pile_limit:int",
|
||||
"struct flag:sortloot:char",
|
||||
"struct flag:inv_order:char",
|
||||
"struct flag:pickup_types:char",
|
||||
"struct flag:end_disclose:char",
|
||||
|
||||
Reference in New Issue
Block a user