Skip to content

Commit 068f398

Browse files
committed
Please, do NOT forget we have CostLabel
1 parent b430d99 commit 068f398

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Ext/Building/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ DEFINE_HOOK(0x43FE73, BuildingClass_AI_FlyingStrings, 0x6)
9797
bool isPositive = refundAmount > 0;
9898
auto color = isPositive ? ColorStruct { 0, 255, 0 } : ColorStruct { 255, 0, 0 };
9999
wchar_t moneyStr[0x20];
100-
swprintf_s(moneyStr, L"%s$%d", isPositive ? L"+" : L"-", std::abs(refundAmount));
100+
swprintf_s(moneyStr, L"%ls%ls%d", isPositive ? L"+" : L"-", Phobos::UI::CostLabel, std::abs(refundAmount));
101101

102102
auto coords = CoordStruct::Empty;
103103
coords = *pThis->GetCenterCoord(&coords);

src/Ext/WarheadType/Detonate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void WarheadTypeExt::ExtData::Detonate(TechnoClass* pOwner, HouseClass* pHouse,
4747
bool isPositive = this->TransactMoney > 0;
4848
auto color = isPositive ? ColorStruct { 0, 255, 0 } : ColorStruct { 255, 0, 0 };
4949
wchar_t moneyStr[0x20];
50-
swprintf_s(moneyStr, L"%s$%d", isPositive ? L"+" : L"-", std::abs(this->TransactMoney));
50+
swprintf_s(moneyStr, L"%ls%ls%d", isPositive ? L"+" : L"-", Phobos::UI::CostLabel, std::abs(this->TransactMoney));
5151
auto displayCoord = this->TransactMoney_Display_AtFirer ? (pOwner ? pOwner->Location : coords) : coords;
5252

5353
int width = 0, height = 0;

0 commit comments

Comments
 (0)