diff options
Diffstat (limited to 'src/tilegod.cpp')
-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; |