Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Melhorado: resposta da janela final
Browse files Browse the repository at this point in the history
  • Loading branch information
Alynva committed May 15, 2017
1 parent e0d8af0 commit 552c4d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions Source/include/freecell.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,12 @@ void FreeCell::playAgain() {
buttons, /* .buttons */
&colorScheme /* .colorScheme */
};
int buttonid;
int buttonid = -1;
if (SDL_ShowMessageBox(&messageboxdata, &buttonid) < 0) {
SDL_Log("Error displaying message box");
}
if (buttonid == -1) {
SDL_Log("no selection");
} else {
if (buttonid == 0) this->quit = false;
SDL_Log("selection was %s", buttons[buttonid].text);
}

if (buttonid == 0) this->quit = false;
}

bool moveCartasParaPilha(Baralho* b, PilhaInteligente* p, int qnt) {
Expand Down
2 changes: 1 addition & 1 deletion Source/src/FreeCell.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Project]
FileName=FreeCell.dev
Name=FreeCell
Type=1
Type=0
Ver=1
ObjFiles=
Includes=C:\Users\Gabriel\Documents\GitHub\FreeCell\Source\include;C:\Users\Gabriel\Documents\GitHub\FreeCell\Source\include\SDL2
Expand Down
6 changes: 3 additions & 3 deletions Source/src/FreeCell.layout
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ LeftChar=1
[Editor_17]
Open=1
Top=1
CursorCol=64
CursorRow=306
TopLine=294
CursorCol=106
CursorRow=323
TopLine=313
LeftChar=1
[Editor_18]
CursorCol=1
Expand Down
Binary file modified Source/src/FreeCell_private.res
Binary file not shown.

0 comments on commit 552c4d0

Please sign in to comment.