From cc8b538ec315715db0408785d69515bf31aafe6a Mon Sep 17 00:00:00 2001 From: MortonPL Date: Sat, 8 Jan 2022 00:58:35 +0100 Subject: [PATCH] Fix the counter having incorrect color when drain > 0 and output == 0 --- src/Misc/Hooks.UI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Misc/Hooks.UI.cpp b/src/Misc/Hooks.UI.cpp index ca5fb3ed9a..435eb682da 100644 --- a/src/Misc/Hooks.UI.cpp +++ b/src/Misc/Hooks.UI.cpp @@ -86,7 +86,7 @@ DEFINE_HOOK(0x4A25E0, CreditsClass_GraphicLogic_HarvesterCounter, 0x7) double percent = HouseClass::Player->PowerOutput != 0 ? (double)HouseClass::Player->PowerDrain / (double)HouseClass::Player->PowerOutput : HouseClass::Player->PowerDrain != 0 - ? Phobos::UI::PowerDelta_ConditionRed : Phobos::UI::PowerDelta_ConditionYellow; + ? Phobos::UI::PowerDelta_ConditionRed*2.f : Phobos::UI::PowerDelta_ConditionYellow; ColorStruct clrToolTip = percent < Phobos::UI::PowerDelta_ConditionYellow ? pSideExt->Sidebar_PowerDelta_Green : LESS_EQUAL(percent, Phobos::UI::PowerDelta_ConditionRed)