Show trophy alert at end of mission (not during, as the banner can obstruct the play area).
This commit is contained in:
parent
b7746b9622
commit
d7a96dbfbd
|
@ -110,6 +110,11 @@ static void logic(void)
|
|||
doPlayerSelect();
|
||||
}
|
||||
}
|
||||
|
||||
if (battle.status != MS_IN_PROGRESS && battle.missionFinishedTimer <= -FPS * 2)
|
||||
{
|
||||
doTrophyAlerts();
|
||||
}
|
||||
}
|
||||
|
||||
doWidgets();
|
||||
|
@ -177,15 +182,15 @@ static void doBattle(void)
|
|||
if (battle.status != MS_IN_PROGRESS)
|
||||
{
|
||||
battle.missionFinishedTimer--;
|
||||
}
|
||||
|
||||
if (battle.unwinnable && battle.missionFinishedTimer <= -FPS * 6)
|
||||
{
|
||||
postBattle();
|
||||
if (battle.unwinnable && battle.missionFinishedTimer <= -FPS * 6)
|
||||
{
|
||||
postBattle();
|
||||
|
||||
destroyBattle();
|
||||
destroyBattle();
|
||||
|
||||
initGalacticMap();
|
||||
initGalacticMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -235,6 +240,11 @@ static void draw(void)
|
|||
drawOptions();
|
||||
break;
|
||||
}
|
||||
|
||||
if (battle.status != MS_IN_PROGRESS && battle.status != MS_PAUSED && battle.missionFinishedTimer <= -FPS * 2)
|
||||
{
|
||||
drawTrophyAlert();
|
||||
}
|
||||
}
|
||||
|
||||
static void drawMenu(void)
|
||||
|
|
|
@ -86,6 +86,8 @@ extern void clearInput(void);
|
|||
extern void runScriptFunction(const char *format, ...);
|
||||
extern void doSpawners(void);
|
||||
extern void awardPostMissionTrophies(void);
|
||||
extern void doTrophyAlerts(void);
|
||||
extern void drawTrophyAlert(void);
|
||||
|
||||
extern App app;
|
||||
extern Battle battle;
|
||||
|
|
Loading…
Reference in New Issue