summaryrefslogtreecommitdiff
path: root/games/gnome-games/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/gnome-games/files')
-rw-r--r--games/gnome-games/files/patch-blackjack_src_player.cpp75
-rw-r--r--games/gnome-games/files/patch-configure11
-rw-r--r--games/gnome-games/files/patch-gataxx_gtkgridboard.c21
-rw-r--r--games/gnome-games/files/patch-gnome-stones_Makefile.in11
-rw-r--r--games/gnome-games/files/patch-iagno_othello.c38
5 files changed, 0 insertions, 156 deletions
diff --git a/games/gnome-games/files/patch-blackjack_src_player.cpp b/games/gnome-games/files/patch-blackjack_src_player.cpp
deleted file mode 100644
index 0a2d1ac3b8b0..000000000000
--- a/games/gnome-games/files/patch-blackjack_src_player.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
---- blackjack/src/player.cpp.orig Tue Jul 6 12:56:50 2004
-+++ blackjack/src/player.cpp Tue Jul 6 12:59:29 2004
-@@ -262,8 +262,8 @@
- // Player can always stand.
-
- bestValue = value = getValueStand (*lplayer, upCard);
-- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
-- _("Stand"), value * 100);
-+ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
-+ _("Stand"), (long double)(value * 100));
- bestOption = KEY_S;
- bestOptionNumber = num_options;
-
-@@ -271,8 +271,8 @@
- if (bj_hand_can_be_hit ()) {
- value = getValueHit (*lplayer, upCard);
-
-- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
-- _("Hit"), value * 100);
-+ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
-+ _("Hit"), (long double)(value * 100));
- if (value > bestValue) {
- bestValue = value;
- bestOption = KEY_H;
-@@ -282,8 +282,8 @@
- // Check if player can double down.
- if (bj_hand_can_be_doubled ()) {
- value = getValueDoubleDown (*lplayer, upCard);
-- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
-- _("Double"), value * 100);
-+ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
-+ _("Double"), (long double)(value * 100));
- if (value > bestValue) {
- bestValue = value;
- bestOption = KEY_D;
-@@ -296,8 +296,8 @@
-
- if (bj_hand_can_be_split ()) {
- value = getValueSplit(lplayer->cards[0].value (), upCard);
-- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
-- _("Split"), value * 100);
-+ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
-+ _("Split"), (long double)(value * 100));
- if (value > bestValue) {
- bestValue = value;
- bestOption = KEY_P;
-@@ -308,8 +308,8 @@
- // Check if player can surrender.
- if (bj_hand_can_be_surrendered ()) {
- value = -0.5;
-- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
-- _("Surrender"), value * 100);
-+ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
-+ _("Surrender"), (long double)(value * 100));
- if (value > bestValue) {
- bestValue = value;
- bestOption = KEY_R;
-@@ -439,12 +439,12 @@
- reset ();
-
- mark_list[0] = g_strdup_printf ("<b>%s</b>\n", _("Dealer hand probabilities"));
-- mark_list[1] = g_strdup_printf (" %s %5.2lf%%\n", _("Bust"),
-- getProbabilityBust (lupCard) * 100.0 / notBlackjack);
-+ mark_list[1] = g_strdup_printf (" %s %5.2Lf%%\n", _("Bust"),
-+ (long double)(getProbabilityBust (lupCard) * 100.0 / notBlackjack));
- for (int count = 17; count <= 21; count++) {
-- mark_list[count-15] = g_strdup_printf (" %2d %5.2lf%%\n", count,
-- getProbabilityCount (count, lupCard)
-- * 100.0 / notBlackjack);
-+ mark_list[count-15] = g_strdup_printf (" %2d %5.2Lf%%\n", count,
-+ (long double)(getProbabilityCount (count, lupCard)
-+ * 100.0 / notBlackjack));
- }
-
- markup = g_strconcat ("<span size=\"small\" font_family=\"monospace\" foreground=\"#eaeac1\">",
diff --git a/games/gnome-games/files/patch-configure b/games/gnome-games/files/patch-configure
deleted file mode 100644
index f8413ef3cff4..000000000000
--- a/games/gnome-games/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig Wed Dec 17 11:58:34 2003
-+++ configure Wed Dec 17 11:58:35 2003
-@@ -22452,7 +22452,7 @@
- else
-
- cat >>confdefs.h <<_ACEOF
--#define GNOME_ICONDIR "${prefix}/share/pixmaps"
-+#define GNOME_ICONDIR "${datadir}/pixmaps"
- _ACEOF
-
- fi
diff --git a/games/gnome-games/files/patch-gataxx_gtkgridboard.c b/games/gnome-games/files/patch-gataxx_gtkgridboard.c
deleted file mode 100644
index 9ceabef83f4f..000000000000
--- a/games/gnome-games/files/patch-gataxx_gtkgridboard.c
+++ /dev/null
@@ -1,21 +0,0 @@
---- gataxx/gtkgridboard.c.orig Thu May 20 17:17:56 2004
-+++ gataxx/gtkgridboard.c Thu May 20 17:18:13 2004
-@@ -140,6 +140,7 @@
- static gint gtk_gridboard_button_press(GtkWidget *widget, GdkEventButton *event)
- {
- GtkGridBoard * gridboard;
-+ int x, y;
-
- g_return_val_if_fail (widget != NULL, FALSE);
- g_return_val_if_fail (GTK_IS_GRIDBOARD(widget), FALSE);
-@@ -147,8 +148,8 @@
-
- gridboard=GTK_GRIDBOARD(widget);
-
-- int x=event->x/gridboard->tilewidth;
-- int y=event->y/gridboard->tileheight;
-+ x=event->x/gridboard->tilewidth;
-+ y=event->y/gridboard->tileheight;
- g_signal_emit (G_OBJECT(widget),
- gridboard_signals[BOXCLICKED], 0, x, y);
- return TRUE;
diff --git a/games/gnome-games/files/patch-gnome-stones_Makefile.in b/games/gnome-games/files/patch-gnome-stones_Makefile.in
deleted file mode 100644
index 92fbe9e8806c..000000000000
--- a/games/gnome-games/files/patch-gnome-stones_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- gnome-stones/Makefile.in.orig Tue Jul 23 20:37:40 2002
-+++ gnome-stones/Makefile.in Tue Jul 23 20:38:10 2002
-@@ -202,7 +202,7 @@
- Caves_in_files = default.caves.in tutorial.caves.in gnomekoban.caves.in atari.caves.in
- Caves_DATA = $(Caves_in_files:.caves.in=.caves)
-
--gtkrcdir = $(datadir)
-+gtkrcdir = $(datadir)/gnome-stones
- gtkrc_DATA = gnome-stonesrc gnome-stonesrc.ko
-
- Mimedir = $(datadir)/mime-info
diff --git a/games/gnome-games/files/patch-iagno_othello.c b/games/gnome-games/files/patch-iagno_othello.c
deleted file mode 100644
index 4b87018a5f18..000000000000
--- a/games/gnome-games/files/patch-iagno_othello.c
+++ /dev/null
@@ -1,38 +0,0 @@
---- iagno/othello.c.orig Thu May 20 17:20:21 2004
-+++ iagno/othello.c Thu May 20 17:21:11 2004
-@@ -544,7 +544,7 @@
- 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);
-
-@@ -559,7 +559,7 @@
- }
- }
-
-- // check if we have to pass
-+ /* check if we have to pass */
- if (best_x == 8 && best_y == 8) {
- tmp_move = find_best_move(board, not_me, ply_depth-1,
- -pass_thresh, -use_thresh, 0, 0);
-@@ -802,14 +802,14 @@
- 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);
-