summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rogue/Makefile4
-rw-r--r--rogue/message.c23
-rw-r--r--rogue/score.c5
3 files changed, 17 insertions, 15 deletions
diff --git a/rogue/Makefile b/rogue/Makefile
index 53779b3c..f0161a2f 100644
--- a/rogue/Makefile
+++ b/rogue/Makefile
@@ -1,8 +1,8 @@
# from: @(#)Makefile 5.7 (Berkeley) 5/11/90
-# $Id: Makefile,v 1.2 1993/08/01 05:44:27 mycroft Exp $
+# $Id: Makefile,v 1.3 1993/11/10 10:02:16 cgd Exp $
PROG= rogue
-CFLAGS+=-DUNIX -DUNIX_BSD4_2 -fwritable-strings
+CFLAGS+=-DUNIX -fwritable-strings -g
SRCS= curses.c hit.c init.c inventory.c level.c machdep.c main.c \
message.c monster.c move.c object.c pack.c play.c random.c ring.c \
room.c save.c score.c spec_hit.c throw.c trap.c use.c zap.c
diff --git a/rogue/message.c b/rogue/message.c
index 2bdcd3b2..4e48e18d 100644
--- a/rogue/message.c
+++ b/rogue/message.c
@@ -36,7 +36,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)message.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: message.c,v 1.3 1993/08/10 16:33:14 mycroft Exp $";
+static char rcsid[] = "$Id: message.c,v 1.4 1993/11/10 10:02:19 cgd Exp $";
#endif /* not lint */
/*
@@ -196,22 +196,23 @@ rgetchar()
for(;;) {
ch = getchar();
-#ifdef VREPRINT
- if (ch == origtermio.c_cc[VREPRINT])
+ switch(ch) {
+ case '\022':
wrefresh(curscr);
- else
-#endif
-#ifdef VSUSP
- if (ch == origtermio.c_cc[VSUSP]) {
+ break;
+#ifdef UNIX_BSD4_2
+ case '\032':
printf(CL);
fflush(stdout);
- kill(0, SIGTSTP);
- } else
+ tstp();
+ break;
#endif
- if (ch == '&')
+ case '&':
save_screen();
- else
+ break;
+ default:
return(ch);
+ }
}
}
/*
diff --git a/rogue/score.c b/rogue/score.c
index 920a4dc4..4b4f0691 100644
--- a/rogue/score.c
+++ b/rogue/score.c
@@ -36,7 +36,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)score.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: score.c,v 1.3 1993/09/23 22:28:42 mycroft Exp $";
+static char rcsid[] = "$Id: score.c,v 1.4 1993/11/10 10:02:20 cgd Exp $";
#endif /* not lint */
/*
@@ -207,7 +207,8 @@ short other;
md_lock(1);
- if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL) {
+ if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL &&
+ (fp = fopen(_PATH_SCOREFILE, "w+")) == NULL) {
message("cannot read/write/create score file", 0);
sf_error();
}