Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
svengcz committed Oct 22, 2022
1 parent 22c546f commit b05f9d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vACDM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@ COLORREF vACDM::colorizeAsat(const types::Flight_t& flight) const {
}
*/

return debug;
//return debug;
}

COLORREF vACDM::colorizeAsatTimerandAort(const types::Flight_t& flight) const {
std::ignore = flight;

/* same logic as in colorizeAsat*/
/* to be hidden at AOBT*/

Expand All @@ -342,6 +344,7 @@ COLORREF vACDM::colorizeCtotandCtottimer(const types::Flight_t& flight) const {
{
return grey;
}

const auto timetoctot = std::chrono::duration_cast<std::chrono::minutes>(std::chrono::utc_clock::now() - flight.ctot).count();
if (timetoctot >= 5)
{
Expand All @@ -355,6 +358,8 @@ COLORREF vACDM::colorizeCtotandCtottimer(const types::Flight_t& flight) const {
{
return orange;
}

return grey;
}

void vACDM::OnGetTagItem(EuroScopePlugIn::CFlightPlan FlightPlan, EuroScopePlugIn::CRadarTarget RadarTarget, int ItemCode, int TagData,
Expand Down

0 comments on commit b05f9d7

Please sign in to comment.