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:
parent
178e95ae50
commit
0cbcebfded
8 changed files with 29 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue