fix bug lose
This commit is contained in:
@@ -72,6 +72,9 @@ int main ()
|
||||
tab2d = creatArea2D(SIZE_PLAY, SIZE_PLAY);
|
||||
targets = fileToTab2D(txt, tab2d, SIZE_PLAY, playerPos, &nbr_targets);
|
||||
output = inGameLoop(tab2d, &dim, playerPos, targets, nbr_targets, &display_user, &score_user, false);
|
||||
SDL_RenderClear(display_user.renderer);
|
||||
if(output != -1000) winOrLoseLoop(&display_user, output==1);
|
||||
output = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user