summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-15 00:54:02 +0200
committerAki <nthirtyone@gmail.com>2016-08-15 00:54:02 +0200
commit1b46cb4fb84f8f21b8766f2a1af5d8a5e9cc15d6 (patch)
tree7feb3853be1326d19839b13e034145f3a33b15c5
parentc59c08744734a0516a765d792a26950aa5ff73c1 (diff)
downloadroflnauts-1b46cb4fb84f8f21b8766f2a1af5d8a5e9cc15d6.zip
roflnauts-1b46cb4fb84f8f21b8766f2a1af5d8a5e9cc15d6.tar.gz
roflnauts-1b46cb4fb84f8f21b8766f2a1af5d8a5e9cc15d6.tar.bz2
Fixed cancel
-rw-r--r--selector.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/selector.lua b/selector.lua
index f869377..afdfed7 100644
--- a/selector.lua
+++ b/selector.lua
@@ -46,7 +46,7 @@ end
function Selector:clear()
self.controlset = nil
self.naut = 1
- self.locked = 0
+ self.locked = false
end
function Selector:getSelectionName()
return self.parent.nauts[self.naut]
@@ -103,7 +103,7 @@ function Selector:controlpressed(set, action, key)
if self.locked == true then
self.locked = false
else
- self.parent:unselectSelector(self)
+ self:clear()
end
end
end