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).
This commit is contained in:
Nunuhara Cabbage
2022-04-05 16:55:47 -07:00
parent 2ca1ce14c5
commit 8a131d416b
+2
View File
@@ -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;