From 3c9d5f7cb42cef47440c11cebab541e8c5cb61f6 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Fri, 2 Nov 2018 22:48:17 +0800 Subject: [PATCH] Changed PartyMemberExtraInfo to not show "Addict" text (in dark green) on the combat control panel if the party member is not addicted to drugs. --- sfall/Modules/PartyControl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sfall/Modules/PartyControl.cpp b/sfall/Modules/PartyControl.cpp index f84c6e0d..95a177d6 100644 --- a/sfall/Modules/PartyControl.cpp +++ b/sfall/Modules/PartyControl.cpp @@ -257,9 +257,11 @@ static void __fastcall PartyMemberPrintStat(BYTE* surface, DWORD toWidth) { xPos -= fo::GetTextWidth(armorClassMsg) + 20; fo::PrintText(acMsg, color, xPos, 167, fo::GetTextWidth(acMsg), toWidth, surface); - color = (fo::func::queue_find_first(partyMember, 2)) ? fo::var::RedColor : fo::var::DarkGreenColor; - widthText = fo::GetTextWidth(addictMsg); - fo::PrintText(addictMsg, color, 350 - widthText, 148, widthText, toWidth, surface); + if (fo::func::queue_find_first(partyMember, 2)) { + color = fo::var::RedColor; + widthText = fo::GetTextWidth(addictMsg); + fo::PrintText(addictMsg, color, 350 - widthText, 148, widthText, toWidth, surface); + } } static void __declspec(naked) gdControlUpdateInfo_hook() {