]> granicus.if.org Git - nethack/commitdiff
minor build fix
authornethack.rankin <nethack.rankin>
Tue, 1 Feb 2005 02:35:47 +0000 (02:35 +0000)
committernethack.rankin <nethack.rankin>
Tue, 1 Feb 2005 02:35:47 +0000 (02:35 +0000)
     same_race() recently added to mondata.c (trunk only) exposed an old
inconsistency in mondata.h (trunk and branch).

include/mondata.h

index 1844803884309bc3b6beb42505cf815ea5f66e40..81c0c86b1ef00f0d24995bc51c60c33f43eb1b9e 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)mondata.h  3.5     2003/11/29      */
+/*     SCCS Id: @(#)mondata.h  3.5     2005/01/31      */
 /* Copyright (c) 1989 Mike Threepoint                            */
 /* NetHack may be freely redistributed.  See license for details. */
 
                                 (((ptr)->mflags2 & (M2_LORD|M2_PRINCE)) == 0L))
 #define is_dlord(ptr)          (is_demon(ptr) && is_lord(ptr))
 #define is_dprince(ptr)                (is_demon(ptr) && is_prince(ptr))
-#define is_minion(ptr)         ((ptr)->mflags2 & M2_MINION)
+#define is_minion(ptr)         (((ptr)->mflags2 & M2_MINION) != 0L)
 #define likes_gold(ptr)                (((ptr)->mflags2 & M2_GREEDY) != 0L)
 #define likes_gems(ptr)                (((ptr)->mflags2 & M2_JEWELS) != 0L)
 #define likes_objs(ptr)                (((ptr)->mflags2 & M2_COLLECT) != 0L || \