updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / pouetchess / pouetchess-0.2.0-segfaults.patch
blob46b27b71d47e770ee98f33fe30d24df62d22873d
1 --- src/faile/search.c
2 +++ src/faile/search.c
3 @@ -805,6 +805,7 @@
4 for (j = 0; j < indent; j++) {
5 fputc (' ', output);
7 + void print_move (move_s moves[], int m, FILE *stream);
8 print_move (&moves[0], i, output);
9 fprintf (output, "\n");
11 --- src/faile/utils.c
12 +++ src/faile/utils.c
13 @@ -125,7 +125,7 @@
14 rank (target) < 1 || rank (target) > 8 ||
15 file (target) < 1 || file (target) > 8)
17 - sprintf (str, "*** FAILE INTERNAL ERROR ***");
18 + sprintf (str, "xxxx");
19 return;
22 --- src/main.cpp
23 +++ src/main.cpp
24 @@ -184,6 +184,9 @@
25 // first scene is SCENE_INIT.
26 pGlobalInfos->SetCurrentScene(GAME_SCENE_INIT);
28 + /* @FB 02/08/06 */
29 + pGlobalInfos->ReleaseKeys();
31 // main game loop
32 while( pGlobalInfos->IsGameRunning() )
34 --- src/scene_main_game.cpp
35 +++ src/scene_main_game.cpp
36 @@ -245,7 +245,7 @@
38 if (pGlobalInfos->OnLeftMouseButtonDown())
40 - if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY));
41 + if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY))
43 // if a piece was already selected, this means the player want to move this piece
44 if (SquareXSelected>-1 && SquareZSelected>-1)