Only add cards to a block if they are exposed.
This commit is contained in:
parent
c8972ab9e8
commit
b7cce35315
@ -130,7 +130,8 @@ static void handle_card_movement(struct cursor *cursor) {
|
|||||||
case 'm':
|
case 'm':
|
||||||
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
|
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
|
||||||
for (struct stack *i = *origin; i && i->next; i = i->next) {
|
for (struct stack *i = *origin; i && i->next; i = i->next) {
|
||||||
if ((i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) {
|
if (i->next->card->face == EXPOSED &&
|
||||||
|
(i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) {
|
||||||
erase_stack(*origin);
|
erase_stack(*origin);
|
||||||
mark_card(i->next->card);
|
mark_card(i->next->card);
|
||||||
draw_stack(*origin);
|
draw_stack(*origin);
|
||||||
|
Loading…
Reference in New Issue
Block a user