Expose covered top cards.

This commit is contained in:
Murilo Pereira 2011-06-01 02:24:02 -03:00
parent 74bdd55bd5
commit 2092abc021

View File

@ -153,9 +153,15 @@ void handle_keyboard_event(int key) {
case KEY_SPACEBAR:
if (cursor_on_stock(cursor)) {
handle_stock_event();
} else {
struct card *card;
if ((card = (*cursor_stack(cursor))->card)->face == COVERED) {
expose_card(card);
draw_card(card);
} else {
handle_card_movement(cursor);
}
}
break;
}
}