1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-23 07:21:19 +00:00

Match some overlay effects files (#1705)

This commit is contained in:
cadmic 2024-02-03 14:36:35 -08:00 committed by GitHub
parent 178e95ae50
commit 0cbcebfded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 29 additions and 24 deletions

View file

@ -37,7 +37,6 @@ static EffectSsUpdateFunc sUpdateFuncs[] = {
};
u32 EffectSsDust_Init(PlayState* play, u32 index, EffectSs* this, void* initParamsx) {
s32 randColorOffset;
EffectSsDustInitParams* initParams = (EffectSsDustInitParams*)initParamsx;
Math_Vec3f_Copy(&this->pos, &initParams->pos);
@ -49,7 +48,8 @@ u32 EffectSsDust_Init(PlayState* play, u32 index, EffectSs* this, void* initPara
this->draw = EffectSsDust_Draw;
if (initParams->drawFlags & 4) {
randColorOffset = Rand_ZeroOne() * 20.0f - 10.0f;
s32 randColorOffset = Rand_ZeroOne() * 20.0f - 10.0f;
this->rPrimColorR = initParams->primColor.r + randColorOffset;
this->rPrimColorG = initParams->primColor.g + randColorOffset;
this->rPrimColorB = initParams->primColor.b + randColorOffset;