[SOL/SPIDER]

* Reduce the scope of some variables.

svn path=/trunk/; revision=54012
This commit is contained in:
Amine Khaldi 2011-10-05 17:54:07 +00:00
parent 8347800656
commit 68cfb4ea83
2 changed files with 4 additions and 2 deletions

View file

@ -235,7 +235,6 @@ VOID ShowGameOptionsDlg(HWND hwnd)
{
DWORD dwOldOptions = dwOptions;
RECT rcMain, rcStatus;
int nWidth, nHeight, nStatusHeight;
if (DialogBox(hInstance, MAKEINTRESOURCE(IDD_OPTIONS), hwnd, OptionsDlgProc))
{
@ -244,6 +243,8 @@ VOID ShowGameOptionsDlg(HWND hwnd)
if ((dwOldOptions & OPTION_SHOW_STATUS) != (dwOptions & OPTION_SHOW_STATUS))
{
int nWidth, nHeight, nStatusHeight;
GetClientRect(hwndMain, &rcMain);
nHeight = rcMain.bottom - rcMain.top;
nWidth = rcMain.right - rcMain.left;

View file

@ -127,10 +127,10 @@ void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int NumDragCards)
{
CardStack temp, fakeDeck = pDeck->GetCardStack();
fGameStarted = true;
int i, j, facedown, faceup;
if (fakeDeck.NumCards() != 0 && deck.NumCards() != 0)
{
int i, facedown, faceup;
/* Add one card to every stack */
for (i = 0; i < NUM_STACKS; i++)
{
@ -145,6 +145,7 @@ void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int NumDragCards)
/* Check stack finished, remove cards if so */
if (stackLookingGood(temp, NUM_ONECOLOR_CARDS - 1))
{
int j;
for (j = 0; j < NUM_ONECOLOR_CARDS; j++)
{
temp.RemoveCard(0);