1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
--- src/faile/search.c
+++ src/faile/search.c
@@ -805,6 +805,7 @@
for (j = 0; j < indent; j++) {
fputc (' ', output);
}
+ void print_move (move_s moves[], int m, FILE *stream);
print_move (&moves[0], i, output);
fprintf (output, "\n");
--- src/faile/utils.c
+++ src/faile/utils.c
@@ -125,7 +125,7 @@
rank (target) < 1 || rank (target) > 8 ||
file (target) < 1 || file (target) > 8)
{
- sprintf (str, "*** FAILE INTERNAL ERROR ***");
+ sprintf (str, "xxxx");
return;
}
--- src/main.cpp
+++ src/main.cpp
@@ -184,6 +184,9 @@
// first scene is SCENE_INIT.
pGlobalInfos->SetCurrentScene(GAME_SCENE_INIT);
+ /* @FB 02/08/06 */
+ pGlobalInfos->ReleaseKeys();
+
// main game loop
while( pGlobalInfos->IsGameRunning() )
{
--- src/scene_main_game.cpp
+++ src/scene_main_game.cpp
@@ -245,7 +245,7 @@
if (pGlobalInfos->OnLeftMouseButtonDown())
{
- if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY));
+ if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY))
{
// if a piece was already selected, this means the player want to move this piece
if (SquareXSelected>-1 && SquareZSelected>-1)
--- src/graphic_chessboard.cpp.old 2011-03-23 08:08:40.000000000 +0100
+++ src/graphic_chessboard.cpp 2011-03-23 08:33:04.000000000 +0100
@@ -122,8 +122,8 @@
for(int i=0;i<6;i++)
{
- char texture_filename[50];
- sprintf(texture_filename,PC_DATA_TEXTURE_SKYBOX,i),
+ char texture_filename[256];
+ snprintf(texture_filename,sizeof(texture_filename),PC_DATA_TEXTURE_SKYBOX,i),
texture_skybox[i] = new CBasicTexture;
if (false==texture_skybox[i]->load(texture_filename,false))
{
|