Partial merge of I/O management.
[super-star-trek.git] / io.c
diff --git a/io.c b/io.c
index 2e66d36f10ec197929d3fbcdd47fd3478de4aacf..3bc3b9c2c88d225069e90723e3ba96093f871dd8 100644 (file)
--- a/io.c
+++ b/io.c
@@ -101,10 +101,10 @@ void clearscreen(void) {
 }
 
 void pause_game(int i) {
+       char *prompt;
 #ifndef SERGEEV
-    char buf[BUFSIZ], *prompt;
+        char buf[BUFSIZ];
 #else /* SERGEEV */
-       char *prompt;
         drawmaps(0);
         setwnd(5);
 #endif /* SERGEEV */
@@ -286,6 +286,24 @@ void prouts(char *fmt, ...) {
 #endif /* SERGEEV */
 }
 
+void warble(void)
+/* sound and visual effects for teleportation */
+{
+#ifdef SERGEEV
+    int posx, posy;
+    posx=wherex();
+    posy=wherey();
+    drawmaps(1);
+    setwnd(4);
+    gotoxy(posx,posy);
+    sound(50);
+    delay(1000);
+    nosound();
+#else
+    prouts(" . . . . . ");
+#endif /* SERGEEV */
+}
+
 void getline(char *line, int max) {
     if (curses) {
 #ifndef SERGEEV