Skip to content

Commit

Permalink
Only show duration if a valid time is given
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Jun 15, 2024
1 parent e5dbafa commit 210d1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GWToolboxdll/Widgets/EffectsMonitorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ void EffectsMonitorWidget::Draw(IDirect3DDevice9*)
const auto skill_frame = GW::UI::GetChildFrame(effects_frame, (uint32_t)skill_id + 0x4);
if (!skill_frame)
continue;
UptimeToString(remaining_str, static_cast<int>(remaining));
DrawTextOverlay(remaining_str, skill_frame);
if(UptimeToString(remaining_str, static_cast<int>(remaining)) > 0)
DrawTextOverlay(remaining_str, skill_frame);
}
}

Expand Down

0 comments on commit 210d1f6

Please sign in to comment.