mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:03:13 +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;
|
DWORD dwOldOptions = dwOptions;
|
||||||
RECT rcMain, rcStatus;
|
RECT rcMain, rcStatus;
|
||||||
int nWidth, nHeight, nStatusHeight;
|
|
||||||
|
|
||||||
if (DialogBox(hInstance, MAKEINTRESOURCE(IDD_OPTIONS), hwnd, OptionsDlgProc))
|
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))
|
if ((dwOldOptions & OPTION_SHOW_STATUS) != (dwOptions & OPTION_SHOW_STATUS))
|
||||||
{
|
{
|
||||||
|
int nWidth, nHeight, nStatusHeight;
|
||||||
|
|
||||||
GetClientRect(hwndMain, &rcMain);
|
GetClientRect(hwndMain, &rcMain);
|
||||||
nHeight = rcMain.bottom - rcMain.top;
|
nHeight = rcMain.bottom - rcMain.top;
|
||||||
nWidth = rcMain.right - rcMain.left;
|
nWidth = rcMain.right - rcMain.left;
|
||||||
|
|
|
@ -127,10 +127,10 @@ void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int NumDragCards)
|
||||||
{
|
{
|
||||||
CardStack temp, fakeDeck = pDeck->GetCardStack();
|
CardStack temp, fakeDeck = pDeck->GetCardStack();
|
||||||
fGameStarted = true;
|
fGameStarted = true;
|
||||||
int i, j, facedown, faceup;
|
|
||||||
|
|
||||||
if (fakeDeck.NumCards() != 0 && deck.NumCards() != 0)
|
if (fakeDeck.NumCards() != 0 && deck.NumCards() != 0)
|
||||||
{
|
{
|
||||||
|
int i, facedown, faceup;
|
||||||
/* Add one card to every stack */
|
/* Add one card to every stack */
|
||||||
for (i = 0; i < NUM_STACKS; i++)
|
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 */
|
/* Check stack finished, remove cards if so */
|
||||||
if (stackLookingGood(temp, NUM_ONECOLOR_CARDS - 1))
|
if (stackLookingGood(temp, NUM_ONECOLOR_CARDS - 1))
|
||||||
{
|
{
|
||||||
|
int j;
|
||||||
for (j = 0; j < NUM_ONECOLOR_CARDS; j++)
|
for (j = 0; j < NUM_ONECOLOR_CARDS; j++)
|
||||||
{
|
{
|
||||||
temp.RemoveCard(0);
|
temp.RemoveCard(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue