Skip to content

Commit

Permalink
Changed name of some times of day, if time of day is NoTimeOfDay, the…
Browse files Browse the repository at this point in the history
… string no longer shows up
  • Loading branch information
Andrettin committed Mar 30, 2016
1 parent 8a9b776 commit 0e4abab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ui/mainscr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,22 +821,23 @@ void DrawResources()
** Draw the day time.
*/
void DrawDayTime() {
if (GameTimeOfDay == NoTimeOfDay || GameTimeOfDay >= MaxTimesOfDay) {
return;
}

char timesText[MaxTimesOfDay][16] = {
"NoTime",
"Dawn",
"Morning",
"Midday",
"Afternoon",
"Dusk",
"First Watch",
"Early Night",
"Midnight",
"Second Watch"
"Late Night"
};
CLabel label(GetGameFont());

if (GameTimeOfDay >= MaxTimesOfDay)
return;

// TODO: Instead of a simple text here we could use an icon per time of day
label.Draw(UI.TimePanel.X, UI.TimePanel.Y, timesText[GameTimeOfDay]);
}
Expand Down

0 comments on commit 0e4abab

Please sign in to comment.