Remove messages about cleaning up resources when quitting.
This commit is contained in:
parent
dbf38ab5e4
commit
2a3d03bea3
|
@ -219,28 +219,21 @@ atexit();
|
||||||
*/
|
*/
|
||||||
void cleanUp()
|
void cleanUp()
|
||||||
{
|
{
|
||||||
printf("Cleaning Up...\n");
|
|
||||||
printf("Freeing Graphics\n");
|
|
||||||
freeGraphics();
|
freeGraphics();
|
||||||
printf("Freeing Background\n");
|
|
||||||
SDL_FreeSurface(background);
|
SDL_FreeSurface(background);
|
||||||
printf("Freeing Sounds\n");
|
|
||||||
freeSound();
|
freeSound();
|
||||||
printf("Resetting Lists\n");
|
|
||||||
resetLists();
|
resetLists();
|
||||||
delete(engine.bulletHead);
|
delete(engine.bulletHead);
|
||||||
delete(engine.explosionHead);
|
delete(engine.explosionHead);
|
||||||
delete(engine.collectableHead);
|
delete(engine.collectableHead);
|
||||||
delete(bufferHead);
|
delete(bufferHead);
|
||||||
|
|
||||||
printf("Freeing Font\n");
|
|
||||||
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
|
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
|
||||||
{
|
{
|
||||||
if (fontShape[i] != NULL)
|
if (fontShape[i] != NULL)
|
||||||
SDL_FreeSurface(fontShape[i]);
|
SDL_FreeSurface(fontShape[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Removing Mod\n");
|
|
||||||
char filename[PATH_MAX];
|
char filename[PATH_MAX];
|
||||||
strcpy(filename, "");
|
strcpy(filename, "");
|
||||||
|
|
||||||
|
@ -252,7 +245,6 @@ void cleanUp()
|
||||||
|
|
||||||
if (engine.useAudio)
|
if (engine.useAudio)
|
||||||
{
|
{
|
||||||
printf("Closing Audio\n");
|
|
||||||
Mix_CloseAudio();
|
Mix_CloseAudio();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +263,6 @@ void cleanUp()
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
printf("Done Cleaning Up...\nThank You for playing Starfighter\n");
|
printf("Thank You for playing Starfighter\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue