summaryrefslogtreecommitdiffstats
path: root/snake/snake/snake.c
diff options
context:
space:
mode:
Diffstat (limited to 'snake/snake/snake.c')
-rw-r--r--snake/snake/snake.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/snake/snake/snake.c b/snake/snake/snake.c
index 908b6542..52fe4795 100644
--- a/snake/snake/snake.c
+++ b/snake/snake/snake.c
@@ -1,4 +1,4 @@
-/* $NetBSD: snake.c,v 1.16 2000/05/08 07:56:05 mycroft Exp $ */
+/* $NetBSD: snake.c,v 1.17 2001/08/31 07:17:02 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#else
-__RCSID("$NetBSD: snake.c,v 1.16 2000/05/08 07:56:05 mycroft Exp $");
+__RCSID("$NetBSD: snake.c,v 1.17 2001/08/31 07:17:02 jsm Exp $");
#endif
#endif /* not lint */
@@ -541,8 +541,10 @@ post(iscore, flag)
read(rawscores, &allbwho, sizeof(short));
lseek(rawscores, uid * sizeof(short), SEEK_SET);
read(rawscores, &oldbest, sizeof(short));
- if (!flag)
+ if (!flag) {
+ lseek(rawscores, 0, SEEK_SET);
return (score > oldbest ? 1 : 0);
+ }
/* Update this jokers best */
if (score > oldbest) {