summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-13 07:45:40 +0200
committerAki <nthirtyone@gmail.com>2017-09-13 07:45:40 +0200
commitbefcd00e185fb0c1eb60f28dd5215e1cd88dfa18 (patch)
tree950fb057102b498a56541c30e7d30bdbdc8af369
parenta1ce3b0b8aa311c464f180edbf8c269b8abbf9b0 (diff)
downloadroflnauts-befcd00e185fb0c1eb60f28dd5215e1cd88dfa18.zip
roflnauts-befcd00e185fb0c1eb60f28dd5215e1cd88dfa18.tar.gz
roflnauts-befcd00e185fb0c1eb60f28dd5215e1cd88dfa18.tar.bz2
Hotfix for animated backgrounds
-rw-r--r--not/World.lua1
1 files changed, 1 insertions, 0 deletions
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