From 37c52457756a4e5b27e2c7fa0ec054fec6e08a63 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sat, 23 May 2020 01:00:48 +0900 Subject: [PATCH] Blood: fix sprite rendering glitch related to ROR # Conflicts: # source/blood/src/view.cpp --- source/blood/src/view.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index f255b87e4..86f734fa5 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -3299,9 +3299,12 @@ void viewDrawScreen(bool sceneonly) if (ror_status[i] != TestBitString(gotpic, 4080 + i)) do_ror_hack = true; if (do_ror_hack) + { + spritesortcnt = 0; goto RORHACKOTHER; - memcpy(otherMirrorGotpic, gotpic + 510, 2); - memcpy(gotpic + 510, bakMirrorGotpic, 2); + } + memcpy(otherMirrorGotpic, gotpic+510, 2); + memcpy(gotpic+510, bakMirrorGotpic, 2); viewProcessSprites(vd8, vd4, vd0, v50, gInterpolate); renderDrawMasks(); screen->FinishScene(); @@ -3390,6 +3393,7 @@ void viewDrawScreen(bool sceneonly) if (do_ror_hack) { gView->pSprite->cstat = bakCstat; + spritesortcnt = 0; goto RORHACK; } sub_5571C(1);