diff options
author | Treeki <treeki@gmail.com> | 2013-05-05 07:10:26 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-05-05 07:10:26 +0200 |
commit | 0b90ab868344d0bb27cecd9f5cd51760e005ea29 (patch) | |
tree | 52929b0da17d8c227c89004f438ceceaf94c50b8 | |
parent | c6f0395e90137424d8ce77d7fa0ac6c8ede991b3 (diff) | |
download | kamek-0b90ab868344d0bb27cecd9f5cd51760e005ea29.tar.gz kamek-0b90ab868344d0bb27cecd9f5cd51760e005ea29.zip |
fixed layers 0 and 2 for tile god
-rw-r--r-- | src/tilegod.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tilegod.cpp b/src/tilegod.cpp index 5f69778..e13fa22 100644 --- a/src/tilegod.cpp +++ b/src/tilegod.cpp @@ -115,10 +115,10 @@ void daChengeBlock_c::doStuff(Action action, bool wasCalledOnCreation) { for (u16 y = 0; y < height; y++) { for (u16 x = 0; x < width; x++) { if (perTilePatternFlag) { - u16 *pExistingTile = dBgGm_c::instance->getPointerToTile(worldX, worldY, 0); + u16 *pExistingTile = dBgGm_c::instance->getPointerToTile(worldX, worldY, currentLayerID); u16 existingTile = pExistingTile ? *pExistingTile : 0; - dBgGm_c::instance->placeTile(worldX, worldY, 0, tile); + dBgGm_c::instance->placeTile(worldX, worldY, currentLayerID, tile); if (!wasCalledOnCreation) { Vec effectPos; |