mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
use FormatMoney everywhere
This commit is contained in:
committed by
majcosta
parent
0dd32c4670
commit
3d29eff4d8
@@ -1518,16 +1518,8 @@ void HandleNotifyPlayerCantAffordInsurance( void )
|
||||
void HandleNotifyPlayerCanAffordInsurance( SOLDIERTYPE *pSoldier, UINT8 ubLength, INT32 iCost )
|
||||
{
|
||||
CHAR16 sString[ 128 ];
|
||||
CHAR16 sStringA[ 32 ];
|
||||
|
||||
//parse the cost
|
||||
swprintf( sStringA, L"%d",iCost );
|
||||
|
||||
// insert the commans and dollar sign
|
||||
InsertCommasForDollarFigure( sStringA );
|
||||
InsertDollarSignInToString( sStringA );
|
||||
|
||||
swprintf( sString, zMarksMapScreenText[ 10 ], pSoldier->GetName(), sStringA, ubLength );
|
||||
swprintf( sString, zMarksMapScreenText[ 10 ], pSoldier->GetName(), FormatMoney(iCost).data(), ubLength );
|
||||
|
||||
//Set the length to the global variable ( so we know how long the contract is in the callback )
|
||||
gubContractLength = ubLength;
|
||||
|
||||
Reference in New Issue
Block a user