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