Module Name:    src
Committed By:   mrg
Date:           Sun Jun 24 12:55:37 UTC 2018

Modified Files:
        src/games/tetris: scores.c

Log Message:
fix the previous.  the code was right, just badly formatted before.

should fix infinite loops reported in some cases.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/games/tetris/scores.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/tetris/scores.c
diff -u src/games/tetris/scores.c:1.23 src/games/tetris/scores.c:1.24
--- src/games/tetris/scores.c:1.23	Sun Feb  4 08:48:05 2018
+++ src/games/tetris/scores.c	Sun Jun 24 12:55:36 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: scores.c,v 1.23 2018/02/04 08:48:05 mrg Exp $	*/
+/*	$NetBSD: scores.c,v 1.24 2018/06/24 12:55:36 mrg Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -830,9 +830,8 @@ checkscores(struct highscore *hs, int nu
 				continue;
 			}
 		}
-	}
-        if (sp->hs_level < NLEVELS && sp->hs_level >= 0) {
-    		levelfound[sp->hs_level] = 1;
+		if (sp->hs_level < NLEVELS && sp->hs_level >= 0)
+			levelfound[sp->hs_level] = 1;
 		i++, sp++;
 	}
 	return (num > MAXHISCORES ? MAXHISCORES : num);

Reply via email to