replace x >= LOW_PM with ismnum(x) shorthand macro
This commit is contained in:
@@ -531,7 +531,7 @@ restgamestate(NHFILE *nhfp)
|
||||
newgamecontext = gc.context; /* copy statically init'd context */
|
||||
if (nhfp->structlevel)
|
||||
Mread(nhfp->fd, &gc.context, sizeof gc.context);
|
||||
gc.context.warntype.species = (gc.context.warntype.speciesidx >= LOW_PM)
|
||||
gc.context.warntype.species = (ismnum(gc.context.warntype.speciesidx))
|
||||
? &mons[gc.context.warntype.speciesidx]
|
||||
: (struct permonst *) 0;
|
||||
/* gc.context.victual.piece, .tin.tin, .spellbook.book, and .polearm.hitmon
|
||||
|
||||
Reference in New Issue
Block a user