From: Matthijs Kooijman Date: Mon, 11 Jun 2007 20:55:12 +0000 (+0200) Subject: * Join two loops into one. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5fb8c983f7ac6de040c33787f20b16027d7c08d2;p=matthijs%2FABM2.git * Join two loops into one. --- diff --git a/ABM2/Playground.cpp b/ABM2/Playground.cpp index 9f66d72..ef34150 100755 --- a/ABM2/Playground.cpp +++ b/ABM2/Playground.cpp @@ -71,13 +71,6 @@ bool Playground::Start() #endif // init playing field SchemeReader *scheme = new SchemeReader("Data/schemes/BASIC.SCH"); - for (int i=0; i tile_sprite = this->getKernel()->getSpriteManager()->getSprite(SPR_TILE); // put in non-destructible blocks @@ -96,6 +89,8 @@ bool Playground::Start() } if (subsprite != -1) field[i][j] = new Tile(tile_sprite, subsprite, i, j); + else + field[i][j] = NULL; } } /*