From bfa2deeffb95e9d1713132f184ee0e46f1243b71 Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Tue, 23 Jul 2024 19:51:22 -0700 Subject: [PATCH] Fix transition issues in Rance 01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PE_UpdateComponent needs to be called before rendering the starting frame of a transition effect. This fixes a glitch in the ●立ち絵 function of Rance 01 when transitioning to a variant CG. --- src/effect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/effect.c b/src/effect.c index 3e49e4a..bad4650 100644 --- a/src/effect.c +++ b/src/effect.c @@ -19,6 +19,7 @@ #include #include "effect.h" #include "gfx/gfx.h" +#include "parts.h" #include "sact.h" #include "system4.h" #include "xsystem4.h" @@ -301,6 +302,7 @@ int sact_TRANS_Begin(int type) effect.on = true; effect.type = type; gfx_copy_main_surface(&effect.old); + PE_UpdateComponent(0); scene_render(); gfx_copy_main_surface(&effect.new); return 1;