chessbox: fix 'i = i++', based on gnuchess4.0-pl80

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27278 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-04 13:27:50 +00:00
parent 7b4ecc7d2b
commit 4acfdbc12a

View file

@ -2145,7 +2145,7 @@ short j,j1,j2,piece,i,sq,*PL;
while (!(m & 0x88))
{
u = unmap[m];
a[u] = ++a[u] | c;
a[u] = (a[u]+1) | c;
if (color[u] == neutral) m += d;
else break;
}
@ -2155,7 +2155,7 @@ short j,j1,j2,piece,i,sq,*PL;
if (!((m = m0+Dir[j]) & 0x88))
{
u = unmap[m];
a[u] = ++a[u] | c;
a[u] = (a[u]+1) | c;
}
}
}