mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Changed PartyMemberExtraInfo to not show "Addict" text (in dark green) on the combat control panel if the party member is not addicted to drugs.
This commit is contained in:
@@ -257,9 +257,11 @@ static void __fastcall PartyMemberPrintStat(BYTE* surface, DWORD toWidth) {
|
|||||||
xPos -= fo::GetTextWidth(armorClassMsg) + 20;
|
xPos -= fo::GetTextWidth(armorClassMsg) + 20;
|
||||||
fo::PrintText(acMsg, color, xPos, 167, fo::GetTextWidth(acMsg), toWidth, surface);
|
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;
|
if (fo::func::queue_find_first(partyMember, 2)) {
|
||||||
widthText = fo::GetTextWidth(addictMsg);
|
color = fo::var::RedColor;
|
||||||
fo::PrintText(addictMsg, color, 350 - widthText, 148, widthText, toWidth, surface);
|
widthText = fo::GetTextWidth(addictMsg);
|
||||||
|
fo::PrintText(addictMsg, color, 350 - widthText, 148, widthText, toWidth, surface);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __declspec(naked) gdControlUpdateInfo_hook() {
|
static void __declspec(naked) gdControlUpdateInfo_hook() {
|
||||||
|
|||||||
Reference in New Issue
Block a user