diff options
-rw-r--r-- | phantasia/setup.c | 9 |
1 files changed, 8 insertions, 1 deletions
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*/ |