more gettextizing and translating
[super-star-trek.git] / src / setup.c
index 03d9e794f36a50d7f250dd18c0bd244464e01395..94c74163e478582bf54518ed63cc89a89a35c9ad 100644 (file)
@@ -786,3 +786,20 @@ void sortkl(void)
            }
     } while (sw);
 }
+
+void setpassword(void) 
+{
+    if (!(game.options & OPTION_CURSES)) {
+       while (TRUE) {
+           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;
+    }
+}