diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f513e..ca741c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,6 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **camera:** Fix camera's drawing in other resolution mode +- **world:** Don't draw unused sti objectlayer + ### Removed - **actor:** Remove all function related to XGravity diff --git a/gamecore/modules/world/baseworld.lua b/gamecore/modules/world/baseworld.lua index 348ae0a..f2a7d54 100644 --- a/gamecore/modules/world/baseworld.lua +++ b/gamecore/modules/world/baseworld.lua @@ -450,7 +450,7 @@ end function BaseWorld:drawMap(id) if self.haveMap then for _, layer in ipairs(self.map.layers) do - if layer.visible and layer.opacity > 0 then + if layer.visible and layer.opacity > 0 and (layer.type == "tilelayer") then self.map:drawLayer(layer) end end