Skip to content
Snippets Groups Projects
Commit 987c20f3 authored by Romain Jegat's avatar Romain Jegat
Browse files

Suppression de printf dans carte.c, mise à jour du fichier Cbp

parent e3261f9e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -35,9 +35,9 @@
<Add directory="../Libs/cmocka-1.0.0/include" />
</Compiler>
<Linker>
<Add library="../Libs/libroxml-2.3.0/Build/libroxml.dll" />
<Add library="./../Libs/SDL-1.2.15/bin/SDL.dll" />
<Add library="../Libs/cmocka-1.0.0/lib/cmocka.dll.a" />
<Add library="..\Libs\libroxml-2.3.0\Build\libroxml.dll" />
<Add library=".\..\Libs\SDL-1.2.15\bin\SDL.dll" />
<Add library="..\Libs\cmocka-1.0.0\lib\cmocka.dll.a" />
<Add directory="./../Libs" />
<Add directory="../Libs/cmocka-1.0.0/lib" />
</Linker>
......@@ -53,6 +53,12 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/SDL.h" />
<Unit filename="../src/TU_main.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/TU_partie.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/TerrainsXML.c">
<Option compilerVar="CC" />
</Unit>
......@@ -62,6 +68,10 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/affichageConsole2.h" />
<Unit filename="../src/carte.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/carte.h" />
<Unit filename="../src/case.c">
<Option compilerVar="CC" />
</Unit>
......@@ -78,6 +88,10 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/controleur.h" />
<Unit filename="../src/controleurSDL.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../src/controleurSDL.h" />
<Unit filename="../src/deplacements.c">
<Option compilerVar="CC" />
</Unit>
......
......@@ -31,12 +31,9 @@ char* LireCarte(const char *filename, int num)
fseek(file_map, 1, SEEK_CUR);
(fgets(char_nb_colonnes,3,file_map));
nb_colonnes = atoi(char_nb_colonnes);
printf("Nb map = %d, Nb colonne = %d, Nb ligne = %d\n\n",num_map,nb_colonnes,nb_lignes);
//num_map++;
while(num_map < num)
{
for(k=0; k<nb_colonnes+4; k++) /*! Descend jusqu' la prochaine map */
{
fseek(file_map,nb_lignes,SEEK_CUR);
......@@ -49,25 +46,7 @@ char* LireCarte(const char *filename, int num)
fseek(file_map, 1, SEEK_CUR);
(fgets(char_nb_colonnes,3,file_map));
nb_colonnes = atoi(char_nb_colonnes);
printf("Nb map = %d, Nb colonne = %d, Nb ligne = %d\n\n",num_map,nb_colonnes,nb_lignes);
//num_map++;
}
/*for(k=0;k<15;k++)
{
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
printf("Le caractere detecte est : %c\n",fgetc(file_map));
}
*/
fseek(file_map, 4, SEEK_CUR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment