Empty the card stacks before showing the win message box.
authorEric Kohl <eric.kohl@reactos.org>
Sun, 17 Jan 2010 12:51:16 +0000 (12:51 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 17 Jan 2010 12:51:16 +0000 (12:51 +0000)
svn path=/trunk/; revision=45122

reactos/base/applications/games/spider/spigame.cpp

index e025d6c..d371720 100644 (file)
@@ -201,6 +201,8 @@ bool CARDLIBPROC StackDragProc(CardRegion &stackobj, int numDragCards)
 /* Game finished successfully */
 void GameFinished()
 {
+    SpiderWnd.EmptyStacks();
+
     MessageBox(SpiderWnd, MsgWin, szAppName, MB_OK | MB_ICONINFORMATION);
     if( IDYES == MessageBox(SpiderWnd, MsgDeal, szAppName, MB_YESNO | MB_ICONQUESTION) )
     {
@@ -208,7 +210,6 @@ void GameFinished()
     }
     else
     {
-        SpiderWnd.EmptyStacks();
         fGameStarted = false;
     }
 }