make some mextra guard macros available
Changes to be committed: modified: doc/fixes36.1 modified: include/mextra.h
This commit is contained in:
@@ -80,6 +80,7 @@ when a pet moves reluctantly, name the top item of the pile it is reluctant
|
|||||||
ensure sufficient messages are given to clarify the transition from detected
|
ensure sufficient messages are given to clarify the transition from detected
|
||||||
vampire bats to fog clouds in Vlad's tower
|
vampire bats to fog clouds in Vlad's tower
|
||||||
fix "killing by kicking something weird" when kicking an object causes death
|
fix "killing by kicking something weird" when kicking an object causes death
|
||||||
|
guard macros available for mextra fields similar to those for oextra fields
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+6
-1
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 mextra.h $NHDT-Date: 1432512781 2015/05/25 00:13:01 $ $NHDT-Branch: master $:$NHDT-Revision: 1.16 $ */
|
/* NetHack 3.6 mextra.h $NHDT-Date: 1451836000 2016/01/03 15:46:40 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.18 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -190,6 +190,11 @@ struct mextra {
|
|||||||
#define MCORPSENM(mon) ((mon)->mextra->mcorpsenm)
|
#define MCORPSENM(mon) ((mon)->mextra->mcorpsenm)
|
||||||
|
|
||||||
#define has_mname(mon) ((mon)->mextra && MNAME(mon))
|
#define has_mname(mon) ((mon)->mextra && MNAME(mon))
|
||||||
|
#define has_egd(mon) ((mon)->mextra && EGD(mon))
|
||||||
|
#define has_epri(mon) ((mon)->mextra && EPRI(mon))
|
||||||
|
#define has_eshk(mon) ((mon)->mextra && ESHK(mon))
|
||||||
|
#define has_emin(mon) ((mon)->mextra && EMIN(mon))
|
||||||
|
#define has_edog(mon) ((mon)->mextra && EDOG(mon))
|
||||||
#define has_mcorpsenm(mon) ((mon)->mextra && MCORPSENM(mon) != NON_PM)
|
#define has_mcorpsenm(mon) ((mon)->mextra && MCORPSENM(mon) != NON_PM)
|
||||||
|
|
||||||
#endif /* MEXTRA_H */
|
#endif /* MEXTRA_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user