Destroy credits data.

This commit is contained in:
Steve 2018-03-21 07:25:54 +00:00
parent 0605da87ee
commit d7672cd2cc
1 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ static void loadCredits(void);
static void logic(void); static void logic(void);
static void draw(void); static void draw(void);
static void handleKeyboard(void); static void handleKeyboard(void);
static void destroyCredits(void);
static Texture *atlasTexture; static Texture *atlasTexture;
static Atlas *background; static Atlas *background;
@ -84,6 +85,8 @@ static void logic(void)
returnToTitle(); returnToTitle();
endSectionTransition(); endSectionTransition();
} }
destroyCredits();
} }
} }
@ -172,10 +175,12 @@ static void handleKeyboard(void)
if (app.keyboard[SDL_SCANCODE_ESCAPE]) if (app.keyboard[SDL_SCANCODE_ESCAPE])
{ {
timeout = 0; timeout = 0;
app.keyboard[SDL_SCANCODE_ESCAPE] = 0;
} }
} }
void destroyCredits(void) static void destroyCredits(void)
{ {
Credit *c; Credit *c;