monsters moving other monsters (trunk only)
For now, the code is conditional on BARGETHROUGH being defined, while it gets tested further. While behavior is different with and without BARGETHROUGH defined, savefiles are the same either way. After this patch is applied, only the riders have the M3_DISPLACES bit set, but the Wizard and Vlad probably should too. Any others?
This commit is contained in:
@@ -129,6 +129,9 @@
|
||||
#define is_covetous(ptr) ((ptr->mflags3 & M3_COVETOUS))
|
||||
#define infravision(ptr) ((ptr->mflags3 & M3_INFRAVISION))
|
||||
#define infravisible(ptr) ((ptr->mflags3 & M3_INFRAVISIBLE))
|
||||
#ifdef BARGETHROUGH
|
||||
#define is_displacer(ptr) (((ptr)->mflags3 & M3_DISPLACES) != 0L)
|
||||
#endif
|
||||
#define is_mplayer(ptr) (((ptr) >= &mons[PM_ARCHEOLOGIST]) && \
|
||||
((ptr) <= &mons[PM_WIZARD]))
|
||||
#define is_rider(ptr) ((ptr) == &mons[PM_DEATH] || \
|
||||
|
||||
Reference in New Issue
Block a user