mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-26 09:58:48 +01:00
Chrom{e,ium} doesn't know for each -.-
This commit is contained in:
parent
975cf4f6e1
commit
a5e70504df
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ var levels = [ "#################@## x#H## x #### ##x #
|
|||
|
||||
function count_gifts( state ) {
|
||||
var n = 0;
|
||||
for each ( var c in state.board ) {
|
||||
if ( c == cell.GIFT ) {
|
||||
for ( var i = LEVEL_HEIGHT * LEVEL_WIDTH ; i-- ; ) {
|
||||
if ( state.board[ i ] == cell.GIFT ) {
|
||||
n++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue