-
-void setpassword(void)
-{
- if (!(game.options & OPTION_CURSES)) {
- for (;;) {
- scan();
- strcpy(game.passwd, citem);
- chew();
- if (*game.passwd != 0) break;
- proutn("Please type in a secret password-");
- }
- } else {
- int i;
- for(i=0;i<3;i++) game.passwd[i]=(char)(97+(int)(Rand()*25));
- game.passwd[3]=0;
- }
-}
-