diff options
Diffstat (limited to 'StarsEx/CmpSelectDlg.cpp')
-rw-r--r-- | StarsEx/CmpSelectDlg.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/StarsEx/CmpSelectDlg.cpp b/StarsEx/CmpSelectDlg.cpp index 941c53a..028dc17 100644 --- a/StarsEx/CmpSelectDlg.cpp +++ b/StarsEx/CmpSelectDlg.cpp @@ -23,6 +23,7 @@ #include "CombatGroup.h" #include "ShipDesign.h" #include "Player.h" +#include "Stardate.h" #include "Clock.h" #include "ContentBundle.h" @@ -147,14 +148,9 @@ CmpSelectDlg::ExecFrame() campaign->Description()); } else { - char time_buf[32]; char score_buf[32]; - - double t = campaign->GetLoadTime() - campaign->GetStartTime(); - FormatDayTime(time_buf, t); - + const auto load_time = starshatter::engine::Stardate{campaign->LoadTime()}.Format(); sprintf_s(score_buf, "%d", campaign->GetPlayerTeamScore()); - Text desc = Text("<font Limerick12><color ffffff>") + campaign->Name() + Text("<font Verdana>\n\n") + @@ -165,7 +161,7 @@ CmpSelectDlg::ExecFrame() Text("\n\n<color ffff80>") + ContentBundle::GetInstance()->GetText("CmpSelectDlg.campaign-time") + Text("<color ffffff>\n\t") + - time_buf + + load_time + Text("\n\n<color ffff80>") + ContentBundle::GetInstance()->GetText("CmpSelectDlg.assignment") + Text("<color ffffff>\n\t"); |