StoatSpriteEngine: multisprite_update() should not use sprite_set_show()

sprite_set_show() is also used by MultiSprite_SetAllShowMessageFrame,
causing interference.

Now multisprite_update() clears the sprite's texture when there's no CG,
rather than hiding it.

Fixes #218.
This commit is contained in:
kichikuou
2025-03-15 08:15:02 +09:00
parent 155c801804
commit 56d9b607b2
+2 -2
View File
@@ -370,9 +370,9 @@ static void multisprite_update(struct multisprite *ms)
if (ms->cg) {
if (ms->type != 5)
sprite_set_cg_from_asset(&ms->sp, ms->cg);
sprite_set_show(&ms->sp, true);
} else {
sprite_set_show(&ms->sp, false);
// clear the texture
sprite_init_color(&ms->sp, 1, 1, 0, 0, 0, 0);
}
ms->cg_dirty = false;
}