]> granicus.if.org Git - nethack/commit
fix [part of] #H103 - misleading prompt when choosing role,&c
authornethack.rankin <nethack.rankin>
Thu, 25 May 2006 05:43:49 +0000 (05:43 +0000)
committernethack.rankin <nethack.rankin>
Thu, 25 May 2006 05:43:49 +0000 (05:43 +0000)
commit949d71e3e0c8d468fc8fb34968fde2092ac113af
tree84572f1ab19c7b3ff9ae3fc84df08844430cbca5
parent0620ca1bc6ce9b5e11ba46d377cf6f3ac0583a11
fix [part of] #H103 - misleading prompt when choosing role,&c

     From a bug report, specifying role and race
along with invalid alignment for that role/race combination resulted in a
prompt of "pick the alignment of your chaotic human Valkyrie".  This fixes
that particular problem, but the role selection code is incomprehensible
and I don't have a lot of confidence about whether other combinations have
similar trouble.

     This also fixes an obvious typo in ok_align().  Unfortunately I can't
figure out what to do with the if-then-else block in root_plselection_prompt
which has identical code for its `then' and `else' halves (in the alignment
code that the new ok_align() test skips).
doc/fixes34.4
src/role.c