mmc5.cpp fix warning about int to boolean type conversion
This commit is contained in:
parent
fd29f48d01
commit
29171209a7
|
@ -122,7 +122,7 @@ uint8* MMC5BGVRAMADR(uint32 A)
|
||||||
{
|
{
|
||||||
if(Sprite16)
|
if(Sprite16)
|
||||||
{
|
{
|
||||||
bool isPattern = PPUON;
|
bool isPattern = PPUON != 0;
|
||||||
if (ppuphase == PPUPHASE_OBJ && isPattern)
|
if (ppuphase == PPUPHASE_OBJ && isPattern)
|
||||||
return &ABANKS[(A) >> 10][(A)];
|
return &ABANKS[(A) >> 10][(A)];
|
||||||
if (ppuphase == PPUPHASE_BG && isPattern)
|
if (ppuphase == PPUPHASE_BG && isPattern)
|
||||||
|
|
Loading…
Reference in New Issue