diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-04 13:27:50 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-04 13:27:50 +0000 |
commit | 4acfdbc12acedac6a06ab1c0986d1935e97f2ac5 (patch) | |
tree | 4971d0ef6459842023c5ed15528b7f73fad037d5 /apps/plugins | |
parent | 7b4ecc7d2bc36a86f616bc7afc6b8103c9fe0b8f (diff) | |
download | rockbox-4acfdbc12acedac6a06ab1c0986d1935e97f2ac5.tar.gz rockbox-4acfdbc12acedac6a06ab1c0986d1935e97f2ac5.zip |
chessbox: fix 'i = i++', based on gnuchess4.0-pl80
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27278 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/chessbox/gnuchess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/gnuchess.c b/apps/plugins/chessbox/gnuchess.c index 5c30c6a6df..aaa67a4cec 100644 --- a/apps/plugins/chessbox/gnuchess.c +++ b/apps/plugins/chessbox/gnuchess.c | |||
@@ -2145,7 +2145,7 @@ short j,j1,j2,piece,i,sq,*PL; | |||
2145 | while (!(m & 0x88)) | 2145 | while (!(m & 0x88)) |
2146 | { | 2146 | { |
2147 | u = unmap[m]; | 2147 | u = unmap[m]; |
2148 | a[u] = ++a[u] | c; | 2148 | a[u] = (a[u]+1) | c; |
2149 | if (color[u] == neutral) m += d; | 2149 | if (color[u] == neutral) m += d; |
2150 | else break; | 2150 | else break; |
2151 | } | 2151 | } |
@@ -2155,7 +2155,7 @@ short j,j1,j2,piece,i,sq,*PL; | |||
2155 | if (!((m = m0+Dir[j]) & 0x88)) | 2155 | if (!((m = m0+Dir[j]) & 0x88)) |
2156 | { | 2156 | { |
2157 | u = unmap[m]; | 2157 | u = unmap[m]; |
2158 | a[u] = ++a[u] | c; | 2158 | a[u] = (a[u]+1) | c; |
2159 | } | 2159 | } |
2160 | } | 2160 | } |
2161 | } | 2161 | } |