From 685670b9306104edc26e5c9d0a1d2465e93876e0 Mon Sep 17 00:00:00 2001 From: jsm Date: Fri, 21 Jan 2000 00:54:53 +0000 Subject: [PATCH] Fix high score table formatting bug. Bug report and fix from Malcolm Parsons . --- tetris/scores.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tetris/scores.c b/tetris/scores.c index 0d03ae38..03a4c31f 100644 --- a/tetris/scores.c +++ b/tetris/scores.c @@ -1,4 +1,4 @@ -/* $NetBSD: scores.c,v 1.8 1999/09/18 19:38:55 jsm Exp $ */ +/* $NetBSD: scores.c,v 1.9 2000/01/21 00:54:53 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -435,10 +435,9 @@ printem(level, offset, hs, n, me) (void)putchar('\n'); continue; } - (void)printf(item + offset < 10 ? " " : " "); sp = &hs[item]; (void)sprintf(buf, - "%d%c %6d %-11s (%d on %d)", + "%3d%c %6d %-11s (%6d on %d)", item + offset, sp->hs_time ? '*' : ' ', sp->hs_score * sp->hs_level, sp->hs_name, sp->hs_score, sp->hs_level); -- 2.47.1