From befcd00e185fb0c1eb60f28dd5215e1cd88dfa18 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 13 Sep 2017 07:45:40 +0200 Subject: Hotfix for animated backgrounds --- not/World.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/not/World.lua b/not/World.lua index 5492c76..a4d0f97 100644 --- a/not/World.lua +++ b/not/World.lua @@ -94,6 +94,7 @@ function World:buildMap () local bg = self:createDecoration(x, y, op.background) if op.animations then bg:setAnimationsList(op.animations) + _,_,width,height = bg:getAnimations()[1]:getViewport() end bg.layer = self:addLayer(width, height, op.ratio) end -- cgit v1.1