From 2ad0de66631eb2ecfa5213cf4828dd8adbeec29e Mon Sep 17 00:00:00 2001 From: kichikuou Date: Fri, 20 Mar 2026 07:25:24 +0900 Subject: [PATCH] ChipmunkSpriteEngine: Add draw method 2 (multiply) support This fixes a bug in Rance Quest where certain maps were not rendering. --- src/hll/StoatSpriteEngine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hll/StoatSpriteEngine.c b/src/hll/StoatSpriteEngine.c index ba9db64..cd9b1b9 100644 --- a/src/hll/StoatSpriteEngine.c +++ b/src/hll/StoatSpriteEngine.c @@ -52,6 +52,7 @@ int StoatSpriteEngine_SP_SetDrawMethod(int sp_no, int method) switch (method) { case 0: return sprite_set_draw_method(sp, DRAW_METHOD_NORMAL); case 1: return sprite_set_draw_method(sp, DRAW_METHOD_ADDITIVE); + case 2: return sprite_set_draw_method(sp, DRAW_METHOD_MULTIPLY); case 3: return sprite_set_draw_method(sp, DRAW_METHOD_SCREEN); default: WARNING("unknown draw method: %d", method); @@ -67,6 +68,7 @@ int StoatSpriteEngine_SP_GetDrawMethod(int sp_no) switch (method) { case DRAW_METHOD_NORMAL: return 0; case DRAW_METHOD_ADDITIVE: return 1; + case DRAW_METHOD_MULTIPLY: return 2; case DRAW_METHOD_SCREEN: return 3; default: WARNING("unknown draw method: %d", method);