diff options
Diffstat (limited to 'games/gnome2-games/patches/patch-ad')
-rw-r--r-- | games/gnome2-games/patches/patch-ad | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/games/gnome2-games/patches/patch-ad b/games/gnome2-games/patches/patch-ad new file mode 100644 index 00000000000..2d67711f145 --- /dev/null +++ b/games/gnome2-games/patches/patch-ad @@ -0,0 +1,33 @@ +$NetBSD: patch-ad,v 1.1 2005/03/16 15:39:02 rillig Exp $ + +Use C comments, not C++. Needed for gcc-2.95.3. + +--- iagno/othello.c.orig Wed Jan 12 10:21:32 2005 ++++ iagno/othello.c Wed Mar 16 00:05:05 2005 +@@ -551,7 +551,7 @@ find_best_move(gint8 board[8][8], guint + memcpy (tboard, board, sizeof (gint8) * 8 * 8); + move_board(tboard, i, j, me, 0); + +- // assume that opponent takes best move ++ /* assume that opponent takes best move */ + tmp_move = find_best_move(tboard, not_me, ply_depth-1, + -pass_thresh, -use_thresh, 0, 0); + +@@ -808,14 +808,14 @@ eval_board (gint8 board[8][8], guint me) + found_free = TRUE; + } + +- // check if a player is dead ++ /* check if a player is dead */ + if (!found_me && found_not_me) + return (-10000); + else if (found_me && !found_not_me) + return (10000); + +- // if the game is finished, return the actual score rather than +- // a huristic ++ /* if the game is finished, return the actual score rather than ++ * a huristic */ + if (!found_free) + return (actual_score); + |