Misc. HUD updates.
This commit is contained in:
parent
a64b41f851
commit
67c7bc7d55
|
@ -417,6 +417,12 @@ static void drawObjectives(void)
|
||||||
{
|
{
|
||||||
blit(clock, (SCREEN_WIDTH / 2) - 50, 14, 0);
|
blit(clock, (SCREEN_WIDTH / 2) - 50, 14, 0);
|
||||||
drawText(SCREEN_WIDTH / 2, 10, 16, TA_CENTER, colors.white, timeToString(game.currentMission->challengeData.timeLimit - battle.stats[STAT_TIME], 0));
|
drawText(SCREEN_WIDTH / 2, 10, 16, TA_CENTER, colors.white, timeToString(game.currentMission->challengeData.timeLimit - battle.stats[STAT_TIME], 0));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
drawText(SCREEN_WIDTH / 2, 10, 16, TA_CENTER, colors.white, timeToString(battle.stats[STAT_TIME], 0));
|
||||||
|
blit(clock, (SCREEN_WIDTH / 2) - 50, 14, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (game.currentMission->challengeData.itemLimit)
|
if (game.currentMission->challengeData.itemLimit)
|
||||||
{
|
{
|
||||||
|
@ -427,12 +433,6 @@ static void drawObjectives(void)
|
||||||
drawText(SCREEN_WIDTH / 2, 35, 14, TA_CENTER, colors.white, "%d / %d", battle.stats[STAT_CIVILIANS_RESCUED], game.currentMission->challengeData.rescueLimit);
|
drawText(SCREEN_WIDTH / 2, 35, 14, TA_CENTER, colors.white, "%d / %d", battle.stats[STAT_CIVILIANS_RESCUED], game.currentMission->challengeData.rescueLimit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
drawText(SCREEN_WIDTH / 2, 10, 16, TA_CENTER, colors.white, timeToString(battle.stats[STAT_TIME], 0));
|
|
||||||
blit(clock, (SCREEN_WIDTH / 2) - 50, 14, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static float distanceToKM(int x1, int y1, int x2, int y2)
|
static float distanceToKM(int x1, int y1, int x2, int y2)
|
||||||
|
|
Loading…
Reference in New Issue