summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-07 04:45:33 +0200
committerAki <nthirtyone@gmail.com>2017-09-07 04:45:33 +0200
commit37da34f0dbc6f6fe58629e52a7126caed4f10434 (patch)
tree53774ba4d9bc3230459d5f379ddefd8d062ac605
parentffce9a325fb5947996bacc9e2d6d19bcef900875 (diff)
downloadroflnauts-37da34f0dbc6f6fe58629e52a7126caed4f10434.zip
roflnauts-37da34f0dbc6f6fe58629e52a7126caed4f10434.tar.gz
roflnauts-37da34f0dbc6f6fe58629e52a7126caed4f10434.tar.bz2
Renamed filepath to filename
-rw-r--r--config/menus/host.lua2
-rw-r--r--not/World.lua5
2 files changed, 4 insertions, 3 deletions
diff --git a/config/menus/host.lua b/config/menus/host.lua
index 6861d91..07c5b80 100644
--- a/config/menus/host.lua
+++ b/config/menus/host.lua
@@ -19,7 +19,7 @@ do
if love.filesystem.isFile(path) and filename ~= "readme.md" then
local map = love.filesystem.load(path)()
local i, name = map.portrait, map.name
- map.filepath = path
+ map.filename = path
if i then
table.insert(icons, love.graphics.newQuad((i-1)*76, 0, 76, 37, 532, 37))
table.insert(maps, map)
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()})