wizmgender fix
The 'wizmgender' option is flagged as 'wizonly' in optlist.h but that doesn't prevent it from being set in NETHACKOPTIONS or .nethackrc. Apply the fix from entrez to only honor it when running in wizard mode.
This commit is contained in:
@@ -1340,7 +1340,7 @@ doname_base(
|
||||
}
|
||||
|
||||
if ((obj->otyp == STATUE || obj->otyp == CORPSE || obj->otyp == FIGURINE)
|
||||
&& iflags.wizmgender) {
|
||||
&& wizard && iflags.wizmgender) {
|
||||
int cgend = (obj->spe & CORPSTAT_GENDER),
|
||||
mgend = ((cgend == CORPSTAT_MALE) ? MALE
|
||||
: (cgend == CORPSTAT_FEMALE) ? FEMALE
|
||||
|
||||
Reference in New Issue
Block a user