This commit is contained in:
Niko 2024-04-15 20:53:08 -07:00
parent 583d8e6899
commit 5a3bf0500e
2 changed files with 4 additions and 4 deletions

View File

@ -68,6 +68,6 @@ void DECOMP_BOTS_GotoStartingLine(struct Driver *d)
d->botAccel = accelDuration * accel;
// cooldown before next weapon
RngDeadCoed(&sdata->const_0x30215400);
d->weaponCooldown = (extraout_var & 0xff) + 300;
int rng = RngDeadCoed(&sdata->const_0x30215400);
d->weaponCooldown = (rng & 0xff) + 300;
}

View File

@ -3994,8 +3994,8 @@ void FUN_8001702c(int param_1)
*(int *)(param_1 + 0x5b4) = iVar2 * (uint)bVar1;
// cooldown before next weapon
FUN_8006c684(&DAT_8008d668);
*(short *)(param_1 + 0x624) = (extraout_var & 0xff) + 300;
rng = FUN_8006c684(&DAT_8008d668);
*(short *)(param_1 + 0x624) = (rng & 0xff) + 300;
return;
}