-#ifndef SERGEEV
-void getline(char *line, int max) {
-#else /* SERGEEV */
-void cgetline(char *line, int max) {
-#endif /* SERGEEV */
- if (curses) {
-#ifndef SERGEEV
- wgetnstr(stdscr, line, max);
- wrefresh(stdscr);
-#else /* SERGEEV */
- line[0]=max-1;
- cgets(line);
- memmove(line,&line[2],max-3);
-#endif /* SERGEEV */
+static void put_srscan_sym(int x, int y, char sym)
+{
+ wmove(srscan_window, x+1, y*2+2);
+ waddch(srscan_window, sym);
+ wrefresh(srscan_window);
+}
+
+void boom(int ii, int jj)
+/* enemy fall down, go boom */
+{
+ if (game.options & OPTION_CURSES) {
+ drawmaps(2);
+ setwnd(srscan_window);
+ wattron(srscan_window, A_REVERSE);
+ put_srscan_sym(ii, jj, game.quad[ii][jj]);
+ sound(500);
+ delay(1000);
+ nosound();
+ wattroff(srscan_window, A_REVERSE);
+ put_srscan_sym(ii, jj, game.quad[ii][jj]);
+ delay(500);
+ setwnd(message_window);
+ }
+}
+
+void warble(void)
+/* sound and visual effects for teleportation */
+{
+ if (game.options & OPTION_CURSES) {
+ drawmaps(2);
+ setwnd(message_window);
+ sound(50);
+ }
+ prouts(" . . . . . ");
+ if (game.options & OPTION_CURSES) {
+ delay(1000);
+ nosound();
+ }
+}
+
+void tracktorpedo(int ix, int iy, int l, int i, int n, int iquad)
+/* torpedo-track animation */
+{
+ if (!game.options & OPTION_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 ", ix, iy);