Cleanup surface_triangles when done resetting
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s

This commit is contained in:
Stephen Seo 2023-08-21 15:17:41 +09:00
parent ca5afe14c3
commit 24c3ade5ee

View file

@ -246,6 +246,7 @@ post_check_click:
surface_reset_anim_timer += dt; surface_reset_anim_timer += dt;
if (surface_reset_anim_timer > SURFACE_RESET_TIME) { if (surface_reset_anim_timer > SURFACE_RESET_TIME) {
flags.reset(0); flags.reset(0);
surface_triangles.reset();
} else { } else {
for (auto &tri : *surface_triangles) { for (auto &tri : *surface_triangles) {
tri.update(dt); tri.update(dt);