-void setpassword(void) {
-#ifndef SERGEEV
- while (TRUE) {
- scan();
- strcpy(game.passwd, citem);
- chew();
- if (*game.passwd != 0) break;
- proutn("Please type in a secret password-");
+void tracktorpedo(int x, int y, int ix, int iy, int wait, int l, int i, int n, int iquad)
+/* torpedo-track animation */
+{
+ if (!curses) {
+ if (l == 1) {
+ if (n != 1) {
+ skip(1);
+ proutn("Track for torpedo number %d- ", i);
+ }
+ else {
+ skip(1);
+ proutn("Torpedo track- ");
+ }
+ } else if (l==4 || l==9)
+ skip(1);
+ proutn("%d - %d ", (int)x, (int)y);
+ } else {
+ if (game.damage[DSRSENS]==0 || condit==IHDOCKED) {
+ drawmaps(2);
+ delay((wait!=1)*400);
+ if ((game.quad[ix][iy]==IHDOT)||(game.quad[ix][iy]==IHBLANK)){
+ game.quad[ix][iy]='+';
+ drawmaps(2);
+ game.quad[ix][iy]=iquad;
+ sound(l*10);
+ delay(100);
+ nosound();
+ }
+ else {
+ game.quad[ix][iy] |= DAMAGED;
+ drawmaps(2);
+ game.quad[ix][iy]=iquad;
+ sound(500);
+ delay(1000);
+ nosound();
+ wattroff(curwnd, A_REVERSE);
+ }
+ } else {
+ proutn("%d - %d ", (int)x, (int)y);