mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
use FormatMoney everywhere
This commit is contained in:
committed by
majcosta
parent
0dd32c4670
commit
3d29eff4d8
@@ -1398,7 +1398,6 @@ BOOLEAN DisplaySaveGameEntry( INT32 bEntryID )
|
||||
CHAR16 zDateString[128];
|
||||
CHAR16 zLocationString[128];
|
||||
CHAR16 zNumMercsString[128];
|
||||
CHAR16 zBalanceString[128];
|
||||
SAVED_GAME_HEADER SaveGameHeader;
|
||||
HVOBJECT hPixHandle;
|
||||
UINT16 usPosX=SLG_FIRST_SAVED_SPOT_X;
|
||||
@@ -1669,11 +1668,6 @@ BOOLEAN DisplaySaveGameEntry( INT32 bEntryID )
|
||||
}
|
||||
}
|
||||
|
||||
//Get the current balance
|
||||
swprintf( zBalanceString, L"%d", SaveGameHeader.iCurrentBalance);
|
||||
InsertCommasForDollarFigure( zBalanceString );
|
||||
InsertDollarSignInToString( zBalanceString );
|
||||
|
||||
//
|
||||
// Display the Saved game information
|
||||
//
|
||||
@@ -1692,7 +1686,7 @@ BOOLEAN DisplaySaveGameEntry( INT32 bEntryID )
|
||||
|
||||
//The balance
|
||||
if(!is_networked)
|
||||
DrawTextToScreen( zBalanceString, (UINT16)(usPosX+SLG_BALANCE_OFFSET_X), (UINT16)(usPosY+SLG_BALANCE_OFFSET_Y), 0, uiFont, ubFontColor, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED );
|
||||
DrawTextToScreen(FormatMoney(SaveGameHeader.iCurrentBalance).data(), (UINT16)(usPosX + SLG_BALANCE_OFFSET_X), (UINT16)(usPosY + SLG_BALANCE_OFFSET_Y), 0, uiFont, ubFontColor, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
||||
|
||||
if( gbSaveGameArray[ VAL_SLOT_START + bEntryID ] || ( gfSaveGame && !gfUserInTextInputMode && ( gbSelectedSaveLocation == bEntryID ) ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user