Minor cleanup.
[super-star-trek.git] / io.c
diff --git a/io.c b/io.c
index a436c3333b7b41a3826fdf2f05ed48d1d9cbe04b..3016890ee3060a6a2f91521f83b42978411e7acc 100644 (file)
--- a/io.c
+++ b/io.c
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <termios.h>
@@ -253,8 +252,8 @@ static void vprouts(char *fmt, va_list ap) {
     }
     free(s);
 }
-
 #endif /* SERGEEV */
+
 void prouts(char *fmt, ...) {
 #ifndef SERGEEV
        clock_t endTime;
@@ -449,6 +448,16 @@ void tracktorpedo(int x, int y, int ix, int iy, int wait, int l, int i, int n, i
 #endif /* SERGEEV */
 }
 
+void makechart(void) {
+#ifdef SERGEEV
+    _setcursortype(_NOCURSOR);
+    setwnd(LOWER_WINDOW);
+    clrscr();
+    chart(0);
+    _setcursortype(_NORMALCURSOR);
+#endif /* SERGEEV */
+}
+
 void setpassword(void) {
 #ifndef SERGEEV
        while (TRUE) {