solitaire:

fixed card placement to not allow placing ♠3 on top row when there was no card there.
This commit is contained in:
Tibor Tálosi
2022-12-31 11:47:23 +01:00
parent f28307128f
commit 27cc057573

View File

@@ -255,6 +255,10 @@ bool place_on_top(Card* where, Card what) {
int8_t b_letter = (int8_t)what.character;
if(a_letter == 12) a_letter = -1;
if(b_letter == 12) b_letter = -1;
if(where->disabled && b_letter != -1)
return false;
if((a_letter + 1) == b_letter) {
where->disabled = what.disabled;
where->pip = what.pip;