Fix bubbling particles issue out-of-water

main
En Yi 2024-08-11 15:50:11 +08:00
parent 5d1784dad8
commit 9f6c37c1fd
1 changed files with 8 additions and 0 deletions

View File

@ -1847,6 +1847,14 @@ void airtimer_update_system(Scene_t* scene)
{
p_air->curr_count = p_air->max_count;
p_air->curr_ftimer = p_air->max_ftimer * 2; // Lengthen the first
CEmitter_t* p_emitter = get_component(p_ent, CEMITTER_T);
if (p_emitter != NULL)
{
if (is_emitter_handle_alive(&scene->part_sys, p_emitter->handle))
{
unload_emitter_handle(&scene->part_sys, p_emitter->handle);
}
}
}
else
{