mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[SOL/SPIDER]
* Reduce the scope of some variables. svn path=/trunk/; revision=54012
This commit is contained in:
parent
8347800656
commit
68cfb4ea83
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue