GotCredits matching

This commit is contained in:
Dethrace Labs 2025-12-29 03:22:46 -08:00 committed by Dethrace Engineering Department
parent 28e63243d7
commit c3c094c482
1 changed files with 2 additions and 1 deletions

View File

@ -618,9 +618,10 @@ int GotCredits(tPowerup* pPowerup, tCar_spec* pCar) {
char s[256];
if (pCar->driver == eDriver_local_human) {
credits = 100 * (IRandomBetween(pPowerup->integer_params[0], pPowerup->integer_params[1]) / 100);
strcpy(s, pPowerup->message);
strcat(s, " ");
EarnCredits2((IRandomBetween(pPowerup->integer_params[0], pPowerup->integer_params[1]) / 100) * 100, s);
EarnCredits2(credits, s);
}
return GET_POWERUP_INDEX(pPowerup);
}