1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 14:31:17 +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

@ -58,10 +58,7 @@ void EffectSsBubble_Draw(PlayState* play, u32 index, EffectSs* this) {
void EffectSsBubble_Update(PlayState* play, u32 index, EffectSs* this) {
WaterBox* waterBox;
f32 waterSurfaceY;
Vec3f ripplePos;
waterSurfaceY = this->pos.y;
f32 waterSurfaceY = this->pos.y;
// kill bubble if it's out of range of a water box
if (!WaterBox_GetSurface1(play, &play->colCtx, this->pos.x, this->pos.z, &waterSurfaceY, &waterBox)) {
@ -70,6 +67,8 @@ void EffectSsBubble_Update(PlayState* play, u32 index, EffectSs* this) {
}
if (waterSurfaceY < this->pos.y) {
Vec3f ripplePos;
ripplePos.x = this->pos.x;
ripplePos.y = waterSurfaceY;
ripplePos.z = this->pos.z;