summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua3
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()})