diff options
Diffstat (limited to 'games/sjeng/patches/patch-ab')
-rw-r--r-- | games/sjeng/patches/patch-ab | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/games/sjeng/patches/patch-ab b/games/sjeng/patches/patch-ab new file mode 100644 index 00000000000..445e3fd1a65 --- /dev/null +++ b/games/sjeng/patches/patch-ab @@ -0,0 +1,36 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/10/25 04:42:52 jlam Exp $ + +--- book.c.orig Mon Jul 16 08:04:48 2001 ++++ book.c +@@ -64,26 +64,31 @@ + if (Variant == Normal) + { + if ((f_book = fopen ("normal.opn", "r")) == NULL) ++ if ((f_book = fopen (BOOKDIR "normal.opn", "r")) == NULL) + return FALSE; + } + else if (Variant == Crazyhouse) + { + if ((f_book = fopen ("zh.opn", "r")) == NULL) ++ if ((f_book = fopen (BOOKDIR "zh.opn", "r")) == NULL) + return FALSE; + } + else if (Variant == Suicide) + { + if ((f_book = fopen ("suicide.opn", "r")) == NULL) ++ if ((f_book = fopen (BOOKDIR "suicide.opn", "r")) == NULL) + return FALSE; + } + else if (Variant == Losers) + { + if ((f_book = fopen ("losers.opn", "r")) == NULL) ++ if ((f_book = fopen (BOOKDIR "losers.opn", "r")) == NULL) + return FALSE; + } + else + { + if ((f_book = fopen ("bug.opn", "r")) == NULL) ++ if ((f_book = fopen (BOOKDIR "bug.opn", "r")) == NULL) + return FALSE; + } + |