Further challenge updates.
This commit is contained in:
parent
f153383f9e
commit
660bb57bb0
|
@ -181,7 +181,10 @@ static void drawChallenges(void)
|
|||
|
||||
static void handleKeyboard(void)
|
||||
{
|
||||
|
||||
if (app.keyboard[SDL_SCANCODE_ESCAPE])
|
||||
{
|
||||
initTitle();
|
||||
}
|
||||
}
|
||||
|
||||
static void startChallengeMission(void)
|
||||
|
|
|
@ -40,6 +40,7 @@ extern void drawWidgets(char *groupName);
|
|||
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
|
||||
extern Widget *getWidget(const char *name, const char *group);
|
||||
extern void saveGame(void);
|
||||
extern void initTitle(void);
|
||||
|
||||
extern App app;
|
||||
extern Battle battle;
|
||||
|
|
|
@ -33,14 +33,14 @@ static char descriptionBuffer[MAX_DESCRIPTION_LENGTH];
|
|||
|
||||
static char *challengeDescription[] = {
|
||||
"Retain at least %d%% armour",
|
||||
"Finish mission in %d seconds or less",
|
||||
"Complete challenge in %d seconds or less",
|
||||
"Attain a %d%% hit accuracy",
|
||||
"Do not lose any team mates",
|
||||
"Do not lose more than 1 team mate",
|
||||
"Do not lose more than %d team mates",
|
||||
"Take down %d enemy targets",
|
||||
"Disable %d or more enemy fighters",
|
||||
"Finish mission in %d minutes or less"
|
||||
"Complete challenge in %d minutes or less"
|
||||
};
|
||||
|
||||
void initChallenges(void)
|
||||
|
|
|
@ -217,8 +217,6 @@ static void options(void)
|
|||
static void returnFromOptions(void)
|
||||
{
|
||||
showingOptions = 0;
|
||||
|
||||
selectWidget("newGame", "title");
|
||||
}
|
||||
|
||||
static void quit(void)
|
||||
|
|
Loading…
Reference in New Issue