mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
Merge pull request #253 from teeebor/bugfix/solitaire-wrong-top-row-placement
Fix for solitaire card placement bug
This commit is contained in:
commit
8457da39e0
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue