fix bug in mon.c reported by paxed
Also adds a shorthand macro
monsym(&mons[n])
for getting the default symbol, used in the bugfix.
This commit is contained in:
@@ -1640,7 +1640,7 @@ rndmonst_adj(int minadj, int maxadj)
|
||||
|
||||
if (montooweak(mndx, minmlev) || montoostrong(mndx, maxmlev))
|
||||
continue;
|
||||
if (upper && !isupper((uchar) def_monsyms[(int) ptr->mlet].sym))
|
||||
if (upper && !isupper(monsym(ptr)))
|
||||
continue;
|
||||
if (elemlevel && wrong_elem_type(ptr))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user