minesweeper: bugfixes / code improvements
commit6096d1c988e0b21ab4e23a9eb9e38d1611137132
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Jun 2010 08:06:31 +0000 (19 08:06 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Jun 2010 08:06:31 +0000 (19 08:06 +0000)
treef9fdb2e6d3c3732ff679bd2b3ee5d6ad50f22c3f
parentaa0f89d56dc1ad4fcf4585fd777ba385384cda69
minesweeper: bugfixes / code improvements

dont make out of array accesses to the minefield
dont flag positions already known
avoid using the same name for local & global variables
don't use modulo but only 1 conditional add/sub

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26956 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/minesweeper.c