summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-08-10 15:39:40 +0000
committermycroft <mycroft@NetBSD.org>1993-08-10 15:39:40 +0000
commitc09e3a474e3e86518ff93fa0bf757512217e5669 (patch)
tree98df9206e85d5f8a7329f8fd7d55cfeee341ce26 /robots
parentae1ae68681f384c37a9022f9f47cdcaf7e914d45 (diff)
downloadbsdgames-darwin-c09e3a474e3e86518ff93fa0bf757512217e5669.tar.gz
bsdgames-darwin-c09e3a474e3e86518ff93fa0bf757512217e5669.tar.zst
bsdgames-darwin-c09e3a474e3e86518ff93fa0bf757512217e5669.zip
Really fix exit code.
Diffstat (limited to 'robots')
-rw-r--r--robots/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/robots/main.c b/robots/main.c
index 3ae5763c..292186fc 100644
--- a/robots/main.c
+++ b/robots/main.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.5 (Berkeley) 2/28/91";*/
-static char rcsid[] = "$Id: main.c,v 1.3 1993/08/10 02:40:55 mycroft Exp $";
+static char rcsid[] = "$Id: main.c,v 1.4 1993/08/10 15:39:40 mycroft Exp $";
#endif /* not lint */
# include "robots.h"
@@ -155,10 +155,9 @@ char **av;
void
quit()
{
- mvcur(0, COLS - 1, LINES - 1, 0);
- insertln();
- refresh();
+ mvcur(0, X_SIZE - 1, Y_SIZE - 1, 0);
endwin();
+ printf("\n");
exit(0);
/* NOTREACHED */
}