From 4cfa5366db2ff9ab31f88fc1f3ef3296d8ba5124 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Wed, 12 Nov 2008 06:57:35 +0000 Subject: [PATCH] Bugfix with forcegoodcard in 2player mode --- shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.c b/shared.c index aa45cc4..9c14e32 100644 --- a/shared.c +++ b/shared.c @@ -3398,7 +3398,7 @@ int getrandomcard(void) { if (cval == (getcardvalue(cardid)-1)) okay = B_TRUE; } } - if (player2) { + if (player2 && !okay) { for (i = 0; i < player2->numcards; i++) { cval = getcardvalue(player2->card[i]); csuit = getcardsuit(player2->card[i]);