From 0b90ab868344d0bb27cecd9f5cd51760e005ea29 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 5 May 2013 07:10:26 +0200 Subject: fixed layers 0 and 2 for tile god --- src/tilegod.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3