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

@ -154,7 +154,13 @@ void handle_keyboard_event(int key) {
if (cursor_on_stock(cursor)) { if (cursor_on_stock(cursor)) {
handle_stock_event(); handle_stock_event();
} else { } else {
handle_card_movement(cursor); struct card *card;
if ((card = (*cursor_stack(cursor))->card)->face == COVERED) {
expose_card(card);
draw_card(card);
} else {
handle_card_movement(cursor);
}
} }
break; break;
} }