From 8a131d416bd77f4321fd96eac7fc81efddb25f5f Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Tue, 5 Apr 2022 16:55:47 -0700 Subject: [PATCH] Add 'screen' draw method to StoatSpriteEngine This fixes an issue in Rance 02 where Sill's fire arrow attack had a black background (reported in #44). --- src/hll/StoatSpriteEngine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hll/StoatSpriteEngine.c b/src/hll/StoatSpriteEngine.c index 5d4c8d4..b6c3065 100644 --- a/src/hll/StoatSpriteEngine.c +++ b/src/hll/StoatSpriteEngine.c @@ -52,6 +52,7 @@ static 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 3: return sprite_set_draw_method(sp, DRAW_METHOD_SCREEN); default: WARNING("unknown draw method: %d", method); return 0; @@ -66,6 +67,7 @@ static int StoatSpriteEngine_SP_GetDrawMethod(int sp_no) switch (method) { case DRAW_METHOD_NORMAL: return 0; case DRAW_METHOD_ADDITIVE: return 1; + case DRAW_METHOD_SCREEN: return 3; default: WARNING("unknown draw method: %d", method); return 0;