From 9b1b68aa50bdaf2ef85d494731254a8318bcb780 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 28 Mar 2019 08:53:30 +0000 Subject: Fixed bug where the draw pile was being inverted when reset. --- pile.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pile.c') diff --git a/pile.c b/pile.c index 793cc7c..fa9ba46 100644 --- a/pile.c +++ b/pile.c @@ -132,6 +132,14 @@ void SwapPile(Pile *a, Pile *b) *b = t; } +void MovePile(Pile *from, Pile *to) +{ + while(from->no) + { + MoveTopCard(from, to); + } +} + void FreePile(Pile *p) { if (p->card) -- cgit v1.2.3