mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-30 19:08:12 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user