From c7d05d39502794ff9380de1d24a7feed50d57808 Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 12 Aug 2021 18:53:17 -0700 Subject: [PATCH] Fix display of water droplet splashes --- src/game/behaviors/water_splashes_and_waves.inc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/behaviors/water_splashes_and_waves.inc.c b/src/game/behaviors/water_splashes_and_waves.inc.c index 0a952075..666fc62b 100644 --- a/src/game/behaviors/water_splashes_and_waves.inc.c +++ b/src/game/behaviors/water_splashes_and_waves.inc.c @@ -74,7 +74,14 @@ void bhv_water_droplet_loop(void) { if (o->oVelY < 0.0f) { if (waterLevel > o->oPosY) { // Create the smaller splash - try_to_spawn_object(0, 1.0f, o, MODEL_SMALL_WATER_SPLASH, bhvWaterDropletSplash); + struct Object* small = try_to_spawn_object(0, 1.0f, o, MODEL_SMALL_WATER_SPLASH, bhvWaterDropletSplash); + + // immediately update render position + small->parentObj = NULL; + small->header.gfx.pos[0] = o->oPosX; + small->header.gfx.pos[1] = o->oPosY; + small->header.gfx.pos[2] = o->oPosZ; + obj_mark_for_deletion(o); } else if (o->oTimer > 20) obj_mark_for_deletion(o);