Bugfix with forcegoodcard in 2player mode

This commit is contained in:
Rob Pearce 2008-11-12 06:57:35 +00:00
parent b61754d443
commit 4cfa5366db
1 changed files with 1 additions and 1 deletions

View File

@ -3398,7 +3398,7 @@ int getrandomcard(void) {
if (cval == (getcardvalue(cardid)-1)) okay = B_TRUE; if (cval == (getcardvalue(cardid)-1)) okay = B_TRUE;
} }
} }
if (player2) { if (player2 && !okay) {
for (i = 0; i < player2->numcards; i++) { for (i = 0; i < player2->numcards; i++) {
cval = getcardvalue(player2->card[i]); cval = getcardvalue(player2->card[i]);
csuit = getcardsuit(player2->card[i]); csuit = getcardsuit(player2->card[i]);