openbsd-ports/games/ace/patches/patch-lib_help_c
bentley 92789ebe7a Import ace-1.4.
The Ace of Penguins is a set of Unix/X solitaire games based on the ones
available for Windows but with a number of enhancements.

The latest version includes clones of Freecell, Golf, Mastermind,
Merlin, Minesweeper, Pegged, Solitaire, Taipei (with editor!), and
Thornq.

ok juanfra@
2016-08-05 05:38:56 +00:00

18 lines
577 B
Plaintext

$OpenBSD: patch-lib_help_c,v 1.1.1.1 2016/08/05 05:38:56 bentley Exp $
--- lib/help.c.orig Sat Mar 24 12:00:49 2012
+++ lib/help.c Wed Aug 3 00:53:26 2016
@@ -520,8 +520,11 @@ help(char *filename, char *text)
{
int end_para = 0;
Word *w = words+i;
- int ts = (thin_space[words[i-1].flags & STYLE_BITS]
- + thin_space[words[i].flags & STYLE_BITS])/2;
+ int ts = thin_space[words[i].flags & STYLE_BITS];
+ if (i != 0)
+ {
+ ts = (ts + thin_space[words[i-1].flags & STYLE_BITS])/2;
+ }
/* decide when we're done with a row */
#if 0