From b5059e848a0a2e8fe057b31df7dbee177f2eb4c1 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 7 Sep 2019 20:36:06 +0200 Subject: [PATCH] fix(world): propagate maptype variables to the parent Fixes #39 --- gamecore/modules/world/world2D.lua | 4 ++-- gamecore/modules/world/world3D.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gamecore/modules/world/world2D.lua b/gamecore/modules/world/world2D.lua index c29a90d..11417ef 100644 --- a/gamecore/modules/world/world2D.lua +++ b/gamecore/modules/world/world2D.lua @@ -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 diff --git a/gamecore/modules/world/world3D.lua b/gamecore/modules/world/world3D.lua index 86388d9..58b364c 100644 --- a/gamecore/modules/world/world3D.lua +++ b/gamecore/modules/world/world3D.lua @@ -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