This behaviour was moved to display#draw_stack.
This commit is contained in:
		
							parent
							
								
									e2554f181e
								
							
						
					
					
						commit
						f86f3357ae
					
				| @ -46,17 +46,11 @@ static bool cursor_on_invalid_spot(struct cursor *cursor) { | |||||||
| 
 | 
 | ||||||
| static void handle_stock_event() { | static void handle_stock_event() { | ||||||
|   if (!empty(deck->stock)) { |   if (!empty(deck->stock)) { | ||||||
|     /* erase the stack before emptying it */ |  | ||||||
|     if (length(deck->stock) == 1) { |  | ||||||
|       erase_stack(deck->stock); |  | ||||||
|     } |  | ||||||
|     move_card(&(deck->stock), &(deck->waste_pile)); |     move_card(&(deck->stock), &(deck->waste_pile)); | ||||||
|     expose_card(deck->waste_pile->card); |     expose_card(deck->waste_pile->card); | ||||||
|     draw_stack(deck->stock); |     draw_stack(deck->stock); | ||||||
|     draw_stack(deck->waste_pile); |     draw_stack(deck->waste_pile); | ||||||
|   } |   } | ||||||
| 
 |  | ||||||
|   return; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void handle_card_movement(struct cursor *cursor) { | static void handle_card_movement(struct cursor *cursor) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user