Destroy credits data.
This commit is contained in:
parent
0605da87ee
commit
d7672cd2cc
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue