Intellivision fixes

This commit is contained in:
alyosha-tas 2016-11-16 09:20:07 -05:00 committed by GitHub
parent 79a9b4c349
commit d53e9dd898
1 changed files with 10 additions and 7 deletions

View File

@ -374,7 +374,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
{
if (i >= x_delay && j >= y_delay)
{
if (i - x_delay >= x_border && j - y_delay >= y_border)
if (i >= x_border && j >= y_border)
{
FrameBuffer[(j * 2) * 159 + i] = BGBuffer[(j - y_delay) * 159 + i - x_delay];
FrameBuffer[(j * 2 + 1) * 159 + i] = BGBuffer[(j - y_delay) * 159 + i - x_delay];
@ -617,6 +617,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
for (int i = 0;i<159;i++)
{
for (int j=0;j<192;j++)
{
if (Collision[i, j] != 0)
{
for (int k = 0; k < 8; k++)
{
@ -632,6 +634,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
Collision[i, j] = 0;
}
}
}
}
// end of Mobs function, we now have collision and graphics data for the mobs