summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-08-01 03:55:17 +0200
committerAki <nthirtyone@gmail.com>2017-08-01 03:55:17 +0200
commit0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6 (patch)
tree9b65202c884319847c28fe174ab4b9d712a329cb /not
parente44eefe628e27a14ba7523a2951014cde782cf7f (diff)
downloadroflnauts-0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6.zip
roflnauts-0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6.tar.gz
roflnauts-0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6.tar.bz2
Settings reload moved to separate method
Diffstat (limited to 'not')
-rw-r--r--not/Settings.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/not/Settings.lua b/not/Settings.lua
index ea4c428..ca429eb 100644
--- a/not/Settings.lua
+++ b/not/Settings.lua
@@ -104,9 +104,11 @@ function Settings.change (n, left, right, up, down, attack, jump, joystick)
else
bool = false
end
- -- Save current settings
Settings.current.sets[n] = {left, right, up, down, attack, jump, bool}
+ Settings.reload()
+end
+
+function Settings.reload ()
Settings.save()
- -- Load settings
Settings.load()
end