Skip to content

Commit

Permalink
Fix 5th sprite flag
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Sep 5, 2021
1 parent bf08426 commit 7f86d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ void Video::RenderSpritesSG1000(int line)
continue;

sprite_count++;
if (!SetBit(m_VdpStatus, 6) && (sprite_count > 4))
if (!IsSetBit(m_VdpStatus, 6) && (sprite_count > 4))
{
m_VdpStatus = SetBit(m_VdpStatus, 6);
m_VdpStatus = (m_VdpStatus & 0xE0) | sprite;
Expand Down

0 comments on commit 7f86d64

Please sign in to comment.