From 629fa8000f93ef02e38680e026feec5a0fd0b6bb Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 10 Nov 1993 10:02:16 +0000 Subject: new curses update --- rogue/score.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rogue/score.c') 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(); } -- cgit v1.2.3