diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-05 02:17:01 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-05 02:17:01 +0200 |
commit | 7f524270713a558c0538c7d728271121928a60ec (patch) | |
tree | 076b70d117e5bc028be6b4cb9905438dd5808d88 /not | |
parent | e8c85303a138e44e1bbe7613c0e6db8d5b7c1fb6 (diff) | |
download | roflnauts-7f524270713a558c0538c7d728271121928a60ec.zip roflnauts-7f524270713a558c0538c7d728271121928a60ec.tar.gz roflnauts-7f524270713a558c0538c7d728271121928a60ec.tar.bz2 |
Map config filepath is now added to map config table; used by debug mode
Diffstat (limited to 'not')
-rw-r--r-- | not/World.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/not/World.lua b/not/World.lua index b2dc0e7..c4606dd 100644 --- a/not/World.lua +++ b/not/World.lua @@ -358,7 +358,8 @@ end -- Controller callbacks function World:controlpressed (set, action, key) if key == "f6" and debug then - local map = self:getMapName() + local map = love.filesystem.load(self.map.filepath)() + map.filepath = self.map.filepath local nauts = {} for _,naut in pairs(self:getNautsAll()) do table.insert(nauts, {naut.name, naut:getControllerSet()}) |