Blood: fix sprite rendering glitch related to ROR

# Conflicts:
#	source/blood/src/view.cpp
This commit is contained in:
nukeykt 2020-05-23 01:00:48 +09:00 committed by Christoph Oelckers
parent 71dc4ff5a4
commit 37c5245775

View file

@ -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);