1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Do not memorialize cheaters in the high score file.

from pjanzen
This commit is contained in:
deraadt 2014-12-09 05:01:14 +00:00
parent f6f752b0d3
commit cceea54a0e
4 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: extern.c,v 1.5 2013/10/25 21:57:10 millert Exp $ */
/* $OpenBSD: extern.c,v 1.6 2014/12/09 05:01:14 deraadt Exp $ */
/* $NetBSD: extern.c,v 1.4 1995/04/27 21:22:19 mycroft Exp $ */
/*-
@ -46,7 +46,7 @@
char GAMES[] = "Game_List";
int clck, safe_planes, test_mode, makenoise;
int clck, safe_planes, seeded, test_mode, makenoise;
time_t start_time;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: extern.h,v 1.8 2014/07/13 14:01:04 tedu Exp $ */
/* $OpenBSD: extern.h,v 1.9 2014/12/09 05:01:14 deraadt Exp $ */
/* $NetBSD: extern.h,v 1.4 1995/04/27 21:22:22 mycroft Exp $ */
/*-
@ -47,7 +47,7 @@
extern char GAMES[];
extern const char *file;
extern int clck, safe_planes, test_mode, makenoise;
extern int clck, safe_planes, seeded, test_mode, makenoise;
extern time_t start_time;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: log.c,v 1.18 2014/07/13 13:00:40 tedu Exp $ */
/* $OpenBSD: log.c,v 1.19 2014/12/09 05:01:14 deraadt Exp $ */
/* $NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $ */
/*-
@ -199,7 +199,9 @@ log_score(int list_em)
changed++;
}
if (changed) {
if (seeded) {
puts("The high score list does not include '-r' seeded games.");
} else if (changed) {
if (found)
puts("You beat your previous score!");
else

View File

@ -1,4 +1,4 @@
/* $OpenBSD: update.c,v 1.15 2014/12/08 21:56:27 deraadt Exp $ */
/* $OpenBSD: update.c,v 1.16 2014/12/09 05:01:14 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -43,7 +43,6 @@
#include "include.h"
int seeded;
void
setseed(const char *seed)
{