Browse Source

Modification des temps d'affichage des messages.

master
Stéphane 8 years ago
parent
commit
4190d267c6
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      main.c

+ 4
- 4
main.c View File

@ -274,10 +274,10 @@ int main(int argc, char **argv) {
display_render_board(&gui_res, &game_state, player_state[0].branch);
SDL_Flip(gui_res.screen);
if( (buffer = (char*) malloc( (23+number_length(nb_game_end+1)+number_length(nb_game)) *sizeof(char) ) ) == NULL)
display_animsg(&gui_res, &game_state, player_state[0].branch, "Début de la manche", 1200);
display_animsg(&gui_res, &game_state, player_state[0].branch, "Début de la manche", 2000);
else {
snprintf(buffer, 22+number_length(nb_game_end+1)+number_length(nb_game), "Début de la manche %d/%d", nb_game_end+1, nb_game);
display_animsg(&gui_res, &game_state, player_state[0].branch, buffer, 1200);
display_animsg(&gui_res, &game_state, player_state[0].branch, buffer, 2000);
free(buffer);
}
@ -328,7 +328,7 @@ int main(int argc, char **argv) {
display_animsg(&gui_res, &game_state, player_state[i].branch, "Coup non valide", 1000);
else {
snprintf(buffer, 28, "Coup non valide (%d erreur%s)", player_state[i].error+1, (player_state[i].error+1>1)?"s":"");
display_animsg(&gui_res, &game_state, player_state[i].branch, buffer, 1200);
display_animsg(&gui_res, &game_state, player_state[i].branch, buffer, 1500);
free(buffer);
}
if(++(player_state[i].error)==3) {
@ -385,7 +385,7 @@ int main(int argc, char **argv) {
}
}
puts("fin de la partie");
display_animsg(&gui_res, &game_state, player_state[i].branch, "Manche terminée", 1200);
display_animsg(&gui_res, &game_state, player_state[i].branch, "Manche terminée", 2000);
/* pour les joueurs qui n'ont pas perdu */
for (i=0; i < nb_player ; i++)
if( player_state[i].error < 3 && player_state[i].ia_lib_p )


Loading…
Cancel
Save