another macro relocation: HI_xxx
Move HI_DOMESTIC and HI_LORD from monst.c to color.h.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 color.h $NHDT-Date: 1596498528 2020/08/03 23:48:48 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.15 $ */
|
||||
/* NetHack 3.7 color.h $NHDT-Date: 1682205020 2023/04/22 23:10:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.18 $ */
|
||||
/* Copyright (c) Steve Linhart, Eric Raymond, 1989. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
/* the tty color setup code. (IMHO, it should be removed - dean). */
|
||||
#define BRIGHT 8
|
||||
|
||||
/* color aliases used in monsters.h and display.c */
|
||||
#define HI_DOMESTIC CLR_WHITE /* for player + pets */
|
||||
#define HI_LORD CLR_MAGENTA /* for high-end monsters */
|
||||
|
||||
/* these can be configured */
|
||||
#define HI_OBJ CLR_MAGENTA
|
||||
#define HI_METAL CLR_CYAN
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 display.c $NHDT-Date: 1672561294 2023/01/01 08:21:34 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.200 $ */
|
||||
/* NetHack 3.7 display.c $NHDT-Date: 1682205030 2023/04/22 23:10:30 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.215 $ */
|
||||
/* Copyright (c) Dean Luick, with acknowledgements to Kevin Darcy */
|
||||
/* and Dave Cohrs, 1990. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2403,7 +2403,6 @@ get_bkglyph_and_framecolor(
|
||||
#define HAS_ROGUE_IBM_GRAPHICS \
|
||||
(gc.currentgraphics == ROGUESET && SYMHANDLING(H_IBM))
|
||||
#endif
|
||||
#define HI_DOMESTIC CLR_WHITE /* monst.c */
|
||||
|
||||
/* masks for per-level variances kept in gg.glyphmap_perlevel_flags */
|
||||
#define GMAP_SET 0x0001
|
||||
@@ -3671,7 +3670,6 @@ fn_cmap_to_glyph(int cmap)
|
||||
#undef Glyphinfo_at
|
||||
#undef reset_glyph_bbox
|
||||
#undef HAS_ROGUE_IBM_GRAPHICS
|
||||
#undef HI_DOMESTIC
|
||||
#undef GMAP_SET
|
||||
#undef GMAP_ROGUELEVEL
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 monst.c $NHDT-Date: 1616891049 2021/03/28 00:24:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.85 $ */
|
||||
/* NetHack 3.7 monst.c $NHDT-Date: 1682205027 2023/04/22 23:10:27 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.97 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -14,8 +14,6 @@
|
||||
#ifdef TEXTCOLOR
|
||||
#include "color.h"
|
||||
#define C(color) color
|
||||
#define HI_DOMESTIC CLR_WHITE /* use for player + friendlies */
|
||||
#define HI_LORD CLR_MAGENTA
|
||||
#else
|
||||
#define C(color)
|
||||
#endif
|
||||
@@ -81,10 +79,6 @@ const struct attack c_sa_no[NATTK] = SEDUCTION_ATTACKS_NO;
|
||||
end of the source code seen by the compiler */
|
||||
#undef C
|
||||
#define C(c) (0x1f & (c)) /* global.h */
|
||||
#ifdef TEXTCOLOR
|
||||
#undef HI_DOMESTIC
|
||||
#undef HI_LORD
|
||||
#endif
|
||||
#undef NO_ATTK
|
||||
#undef MON
|
||||
#undef MON3
|
||||
|
||||
Reference in New Issue
Block a user