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