Fix high score table formatting bug.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
This commit is contained in:
jsm 2000-01-21 00:54:53 +00:00
parent d8d956c46c
commit 7e681e294b

View File

@ -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);