From: C.W. Betts Date: Thu, 14 Apr 2016 20:04:22 +0000 (-0600) Subject: Change flag::sortloot to xchar X-Git-Tag: NetHack-3.6.1_RC01~828 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41ade6d37daa0d16d0a1dcad1525ae1d185019ba;p=nethack Change flag::sortloot to xchar When typedefed to C99's bool type, Clang complains in container_contents about "comparison of constant 108 with expression of type 'boolean' (aka 'bool') is always false". --- diff --git a/include/flag.h b/include/flag.h index 26009e26a..b9cd17f6b 100644 --- a/include/flag.h +++ b/include/flag.h @@ -48,7 +48,7 @@ struct flag { boolean showexp; /* show experience points */ boolean showscore; /* show score */ boolean silent; /* whether the bell rings or not */ - boolean sortloot; /* sort items alphabetically when looting */ + xchar sortloot; /* sort items alphabetically when looting */ boolean sortpack; /* sorted inventory */ boolean sparkle; /* show "resisting" special FX (Scott Bigham) */ boolean standout; /* use standout for --More-- */