From 37da34f0dbc6f6fe58629e52a7126caed4f10434 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 7 Sep 2017 04:45:33 +0200 Subject: Renamed filepath to filename --- not/World.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'not') diff --git a/not/World.lua b/not/World.lua index ebc7d9f..0d65d7e 100644 --- a/not/World.lua +++ b/not/World.lua @@ -336,8 +336,9 @@ end -- Controller callbacks function World:controlpressed (set, action, key) if key == "f6" and debug then - local map = love.filesystem.load(self.map.filepath)() - map.filepath = self.map.filepath + local filename = self.map.filename + local map = love.filesystem.load(filename)() + map.filename = filename local nauts = {} for _,naut in pairs(self:getNautsAll()) do table.insert(nauts, {naut.name, naut:getControllerSet()}) -- cgit v1.1