diff --git a/Laptop/AimMembers.cpp b/Laptop/AimMembers.cpp index aa89d4f2..32c5a1c1 100644 --- a/Laptop/AimMembers.cpp +++ b/Laptop/AimMembers.cpp @@ -1261,18 +1261,6 @@ BOOLEAN DrawNumeralsToScreen(INT32 iNumber, INT8 bWidth, UINT16 usLocX, UINT16 u return(TRUE); } -static auto FormatMoney(INT32 iNumber) -> std::wstring -{ - static std::wstringstream wss([] { - std::wstringstream ss; - ss.imbue(std::locale("")); - return ss; - }()); - wss.str(L""); - wss << iNumber; - - return L"$" + wss.str(); -} void SelectFaceRegionCallBack(MOUSE_REGION * pRegion, INT32 iReason ) diff --git a/Utils/Text Utils.cpp b/Utils/Text Utils.cpp index 154ef003..7ef2bb52 100644 --- a/Utils/Text Utils.cpp +++ b/Utils/Text Utils.cpp @@ -5,6 +5,19 @@ #include #include +auto FormatMoney(INT32 iNumber) -> std::wstring +{ + static std::wstringstream wss([] { + std::wstringstream ss; + ss.imbue(std::locale("")); + return ss; + }()); + wss.str(L""); + wss << iNumber; + + return L"$" + wss.str(); +} + BOOLEAN LoadItemInfo(UINT16 ubIndex, STR16 pNameString, STR16 pInfoString ) { int j = 0; diff --git a/i18n/include/Text.h b/i18n/include/Text.h index 58a7154c..47039847 100644 --- a/i18n/include/Text.h +++ b/i18n/include/Text.h @@ -8,6 +8,8 @@ #define STRING_LENGTH 255 +auto FormatMoney(INT32) -> std::wstring; + enum { //TCTL_MSG__RANGE_TO_TARGET,