fix(world): propagate maptype variables to the parent

Fixes #39
This commit is contained in:
Kazhnuz 2019-09-07 20:36:06 +02:00
parent b167c45530
commit b5059e848a
2 changed files with 4 additions and 4 deletions

View file

@ -29,8 +29,8 @@ local World2D = BaseWorld:extend()
local Bump = require(cwd .. "libs.bump")
local CameraSystem = require(cwd .. "camera")
function World2D:new(scene, actorlist, mapfile)
World2D.super.new(self, scene, actorlist, mapfile)
function World2D:new(scene, actorlist, mapfile, maptype)
World2D.super.new(self, scene, actorlist, mapfile, maptype)
end
-- ACTORS FUNCTIONS

View file

@ -33,8 +33,8 @@ local CameraSystem = require(cwd .. "camera")
local PADDING_VALUE = 10/100
function World3D:new(scene, actorlist, mapfile)
World3D.super.new(self, scene, actorlist, mapfile)
function World3D:new(scene, actorlist, mapfile, maptype)
World3D.super.new(self, scene, actorlist, mapfile, maptype)
end
-- ACTORS FUNCTIONS