From d12fe4fbf48b540d01aee7773682868627d4aede Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 24 Nov 1997 01:47:26 +0000 Subject: don't clobber the score file! --- phantasia/setup.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'phantasia') diff --git a/phantasia/setup.c b/phantasia/setup.c index 7fc1d666..6727d265 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.7 1997/10/13 02:18:37 lukem Exp $ */ +/* $NetBSD: setup.c,v 1.8 1997/11/24 01:47:26 mrg Exp $ */ /* * setup.c - set up all files for Phantasia @@ -98,6 +98,13 @@ main(argc, argv) continue; } + if (!strcmp(*filename, _PATH_SCORE)) + /* do not reset score file if it already exists */ + { + ++filename; + continue; + } + if (unlink(path) < 0) Error("Cannot unlink %s.\n", path); /*NOTREACHED*/ -- cgit v1.2.3-56-ge451