@@ -3049,12 +3049,12 @@ bool CStaticFunctionDefinitions::SetPlayerMoney(CElement* pElement, long lMoney,
3049
3049
{
3050
3050
CPlayer* pPlayer = static_cast <CPlayer*>(pElement);
3051
3051
3052
- // Is it above 99999999 ? Limit it to it
3053
- if (lMoney > 99999999 )
3054
- lMoney = 99999999 ;
3055
- // Is it below -99999999 ?
3056
- else if (lMoney < -99999999 )
3057
- lMoney = -99999999 ;
3052
+ // Is it above 999999999 ? Limit it to it
3053
+ if (lMoney > 999999999 )
3054
+ lMoney = 999999999 ;
3055
+ // Is it below -999999999 ?
3056
+ else if (lMoney < -999999999 )
3057
+ lMoney = -999999999 ;
3058
3058
3059
3059
// Tell him his new money
3060
3060
CBitStream BitStream;
@@ -3079,19 +3079,19 @@ bool CStaticFunctionDefinitions::GivePlayerMoney(CElement* pElement, long lMoney
3079
3079
{
3080
3080
CPlayer* pPlayer = static_cast <CPlayer*>(pElement);
3081
3081
3082
- // Is it above 99999999 ? Limit it to it
3083
- if (lMoney > 99999999 )
3084
- lMoney = 99999999 ;
3085
- // Is it below -99999999 ?
3086
- else if (lMoney < -99999999 )
3087
- lMoney = -99999999 ;
3082
+ // Is it above 999999999 ? Limit it to it
3083
+ if (lMoney > 999999999 )
3084
+ lMoney = 999999999 ;
3085
+ // Is it below -999999999 ?
3086
+ else if (lMoney < -999999999 )
3087
+ lMoney = -999999999 ;
3088
3088
3089
- // Calculate his new money, if it exceeds 8 digits, set it to 99999999
3089
+ // Calculate his new money, if it exceeds 9 digits, set it to 999999999
3090
3090
long lNewMoney = pPlayer->GetMoney () + lMoney;
3091
- if (lNewMoney > 99999999 )
3092
- lNewMoney = 99999999 ;
3093
- else if (lNewMoney < -99999999 )
3094
- lNewMoney = -99999999 ;
3091
+ if (lNewMoney > 999999999 )
3092
+ lNewMoney = 999999999 ;
3093
+ else if (lNewMoney < -999999999 )
3094
+ lNewMoney = -999999999 ;
3095
3095
3096
3096
// Tell him his new money
3097
3097
CBitStream BitStream;
0 commit comments