mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
solitaire:
fixed card placement to not allow placing ♠3 on top row when there was no card there.
This commit is contained in:
@@ -255,6 +255,10 @@ bool place_on_top(Card* where, Card what) {
|
|||||||
int8_t b_letter = (int8_t)what.character;
|
int8_t b_letter = (int8_t)what.character;
|
||||||
if(a_letter == 12) a_letter = -1;
|
if(a_letter == 12) a_letter = -1;
|
||||||
if(b_letter == 12) b_letter = -1;
|
if(b_letter == 12) b_letter = -1;
|
||||||
|
|
||||||
|
if(where->disabled && b_letter != -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
if((a_letter + 1) == b_letter) {
|
if((a_letter + 1) == b_letter) {
|
||||||
where->disabled = what.disabled;
|
where->disabled = what.disabled;
|
||||||
where->pip = what.pip;
|
where->pip = what.pip;
|
||||||
|
|||||||
Reference in New Issue
Block a user