]> granicus.if.org Git - nethack/commitdiff
Player selection fix on Qt windowport.
authorwarwick <warwick>
Mon, 21 Jan 2002 05:15:06 +0000 (05:15 +0000)
committerwarwick <warwick>
Mon, 21 Jan 2002 05:15:06 +0000 (05:15 +0000)
Prompt for player details even if gender or alignment is unspecified.

win/Qt/qt_win.cpp

index 6716c9b787312170d653464fb1aea57fc245222d..5d1660a9ff24789f6892d390088d11c383f2c06d 100644 (file)
@@ -1091,6 +1091,7 @@ NetHackQtPlayerSelector::NetHackQtPlayerSelector(NetHackQtKeyBuffer& ks) :
     int g = flags.initgend;
     if (g == -1) {
        g = rn2(ROLE_GENDERS);
+       fully_specified_role = FALSE;
     }
     while (!validgend(ro,ra,g)) {
        g = rn2(ROLE_GENDERS);
@@ -1101,6 +1102,7 @@ NetHackQtPlayerSelector::NetHackQtPlayerSelector(NetHackQtKeyBuffer& ks) :
     int a = flags.initalign;
     if (a == -1) {
        a = rn2(ROLE_ALIGNS);
+       fully_specified_role = FALSE;
     }
     while (!validalign(ro,ra,a)) {
        a = rn2(ROLE_ALIGNS);