diff options
author | 2014-12-09 05:01:14 +0000 | |
---|---|---|
committer | 2014-12-09 05:01:14 +0000 | |
commit | cceea54a0e55ec8a7f7eacb85a37e4708ee5824d (patch) | |
tree | ba7de1f4497657be9cee686b48d5455e5313f69b | |
parent | Move the initial link status check and possible forceup back before (diff) | |
download | wireguard-openbsd-cceea54a0e55ec8a7f7eacb85a37e4708ee5824d.tar.xz wireguard-openbsd-cceea54a0e55ec8a7f7eacb85a37e4708ee5824d.zip |
Do not memorialize cheaters in the high score file.
from pjanzen
-rw-r--r-- | games/atc/extern.c | 4 | ||||
-rw-r--r-- | games/atc/extern.h | 4 | ||||
-rw-r--r-- | games/atc/log.c | 6 | ||||
-rw-r--r-- | games/atc/update.c | 3 |
4 files changed, 9 insertions, 8 deletions
diff --git a/games/atc/extern.c b/games/atc/extern.c index 402aeb3c73b..5e8f3c55165 100644 --- a/games/atc/extern.c +++ b/games/atc/extern.c @@ -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; diff --git a/games/atc/extern.h b/games/atc/extern.h index 1e1a293b70b..5111ca05316 100644 --- a/games/atc/extern.h +++ b/games/atc/extern.h @@ -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; diff --git a/games/atc/log.c b/games/atc/log.c index 6f4edacadd1..7ac6ea31672 100644 --- a/games/atc/log.c +++ b/games/atc/log.c @@ -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 diff --git a/games/atc/update.c b/games/atc/update.c index 86536a23e79..36cf824bd27 100644 --- a/games/atc/update.c +++ b/games/atc/update.c @@ -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) { |