From: Matthijs Kooijman Date: Mon, 11 Jun 2007 20:57:58 +0000 (+0200) Subject: * Use "col" and "row" instead of i and j. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=commitdiff_plain;h=4e3305a825026b6d0574b852421c8dbf31eb925e * Use "col" and "row" instead of i and j. --- diff --git a/ABM2/Playground.cpp b/ABM2/Playground.cpp index ef34150..5491025 100755 --- a/ABM2/Playground.cpp +++ b/ABM2/Playground.cpp @@ -74,12 +74,12 @@ bool Playground::Start() CMMPointer tile_sprite = this->getKernel()->getSpriteManager()->getSprite(SPR_TILE); // put in non-destructible blocks - for (int i=0; iPlayField[j*PLAYGROUND_NUMFIELD_X+i]) { + switch(scheme->PlayField[row*PLAYGROUND_NUMFIELD_X+col]) { case BRICK: subsprite = SPR_SUB_BRICK; break; @@ -88,9 +88,9 @@ bool Playground::Start() break; } if (subsprite != -1) - field[i][j] = new Tile(tile_sprite, subsprite, i, j); + field[col][row] = new Tile(tile_sprite, subsprite, col, row); else - field[i][j] = NULL; + field[col][row] = NULL; } } /*