Remove obsolete code allowing 1-indexing the monster list
Having selectable base indexes for the monster list doesn't seem likely to be needed in the future any more, now that the code for the monster list is stable. Additionally, the functionality in question has bitrotted heavily (e.g. many "loops over all permonsts" start at a hardcoded 0, which wouldn't work with a 1-indexed monster list). As a result, removing the relevant code in makedefs makes it clearer what can and can't be assumed about the code, reducing the risk of bugs in the future. Thanks to FIQ for mentioning that this could be an issue.
This commit is contained in:
@@ -70,7 +70,7 @@ extern NEARDATA struct permonst mons[]; /* the master list of monster types */
|
||||
#define FAST_SPEED 15
|
||||
#define VERY_FAST 24
|
||||
|
||||
#define NON_PM PM_PLAYERMON /* "not a monster" */
|
||||
#define NON_PM (-1) /* "not a monster" */
|
||||
#define LOW_PM (NON_PM + 1) /* first monster in mons[] */
|
||||
#define SPECIAL_PM PM_LONG_WORM_TAIL /* [normal] < ~ < [special] */
|
||||
/* mons[SPECIAL_PM] through mons[NUMMONS-1], inclusive, are
|
||||
|
||||
Reference in New Issue
Block a user