Bugfix with forcegoodcard in 2player mode
This commit is contained in:
parent
b61754d443
commit
4cfa5366db
2
shared.c
2
shared.c
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue