commodore64: fix sprite priority (no longer always in background)
This commit is contained in:
parent
26f1a2e260
commit
381b064d2a
BizHawk.Emulation/Computers/Commodore64
|
@ -1312,10 +1312,16 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
|||
if (borderOnMain || borderOnVertical)
|
||||
pixel = EC;
|
||||
else
|
||||
pixel = (
|
||||
(spriteData == 0) ||
|
||||
((spriteData != 0) && (spritePriority = true) && (plotterDataBuffer[plotterBufferIndex] >= 0x2)))
|
||||
? plotterPixelBuffer[plotterBufferIndex] : spritePixel;
|
||||
{
|
||||
if ((spriteData == 0) || (spritePriority == true && plotterDataBuffer[plotterBufferIndex] >= 0x2))
|
||||
{
|
||||
pixel = plotterPixelBuffer[plotterBufferIndex];
|
||||
}
|
||||
else
|
||||
{
|
||||
pixel = spritePixel;
|
||||
}
|
||||
}
|
||||
|
||||
PipelineWritePixel(pixel);
|
||||
|
||||
|
|
Loading…
Reference in New Issue