Empty the card stacks before showing the win message box.

svn path=/trunk/; revision=45122
This commit is contained in:
Eric Kohl 2010-01-17 12:51:16 +00:00
parent 929ff6e2ac
commit a811921d8e

View 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;
}
}