From 2ede7e6bb122ea30516e00d7479eda3c3c5efa1f Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 17 May 2025 09:00:55 +0900 Subject: [PATCH] StoatSpriteEngine: Clear cached font_size struct in SP_SetTextSpriteType This fixes a bug where the wrong font was used on the Rance Quest status screen. Commit 6c2a55c reset `font_size` on size changes, but the same is needed for face changes. --- src/hll/StoatSpriteEngine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hll/StoatSpriteEngine.c b/src/hll/StoatSpriteEngine.c index 6fb8f85..c30693d 100644 --- a/src/hll/StoatSpriteEngine.c +++ b/src/hll/StoatSpriteEngine.c @@ -127,6 +127,8 @@ bool StoatSpriteEngine_SP_SetTextSprite(int sp_no, struct string *text) void StoatSpriteEngine_SP_SetTextSpriteType(int type) { + if (text_sprite_ts.face != type) + text_sprite_ts.font_size = NULL; text_sprite_ts.face = type; }