From 9780e8c24b45cfb47085d77ae64ba1f91d31419e Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Tue, 25 Jan 2011 15:50:27 +0100 Subject: Implemented card_stack_push(). Renamed card_stack_clear() to card_stack_replace() and card_stack_upper_card() to card_stack_top(). Added documentation. --- src/table_stacks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/table_stacks.c') diff --git a/src/table_stacks.c b/src/table_stacks.c index 9a32977..7f76edd 100644 --- a/src/table_stacks.c +++ b/src/table_stacks.c @@ -14,7 +14,7 @@ const uint8_t get_stack_idx_for_card(const table_stacks_t* stack_list, const car for(int i=0; istacks[i]); + card stackcard = card_stack_top(&stack_list->stacks[i]); uint8_t new_diff = c - stackcard; assert(new_diff != 0); -- cgit v1.2.3