Expose covered top cards.
This commit is contained in:
parent
74bdd55bd5
commit
2092abc021
@ -153,9 +153,15 @@ void handle_keyboard_event(int key) {
|
|||||||
case KEY_SPACEBAR:
|
case KEY_SPACEBAR:
|
||||||
if (cursor_on_stock(cursor)) {
|
if (cursor_on_stock(cursor)) {
|
||||||
handle_stock_event();
|
handle_stock_event();
|
||||||
|
} else {
|
||||||
|
struct card *card;
|
||||||
|
if ((card = (*cursor_stack(cursor))->card)->face == COVERED) {
|
||||||
|
expose_card(card);
|
||||||
|
draw_card(card);
|
||||||
} else {
|
} else {
|
||||||
handle_card_movement(cursor);
|
handle_card_movement(cursor);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user