mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +00:00
Cleanup unnecessary &'s on function/array pointers (#1031)
This commit is contained in:
parent
6efb590699
commit
d241bfb7ec
52 changed files with 106 additions and 107 deletions
|
@ -24,7 +24,7 @@ u32 EffectSsBubble_Init(GlobalContext* globalCtx, u32 index, EffectSs* this, voi
|
|||
//! @bug Rand_ZeroOne in the macro means a random number is generated for both parts of the macro.
|
||||
// In the base game this works out because both addresses are segment 4, but it may break if
|
||||
// the addresses were changed to refer to different segments
|
||||
this->gfx = SEGMENTED_TO_VIRTUAL(Rand_ZeroOne() < 0.5f ? &gEffBubble1Tex : &gEffBubble2Tex);
|
||||
this->gfx = SEGMENTED_TO_VIRTUAL(Rand_ZeroOne() < 0.5f ? gEffBubble1Tex : gEffBubble2Tex);
|
||||
this->pos.x = ((Rand_ZeroOne() - 0.5f) * initParams->xzPosRandScale) + initParams->pos.x;
|
||||
this->pos.y = (((Rand_ZeroOne() - 0.5f) * initParams->yPosRandScale) + initParams->yPosOffset) + initParams->pos.y;
|
||||
this->pos.z = ((Rand_ZeroOne() - 0.5f) * initParams->xzPosRandScale) + initParams->pos.z;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue