diff options
author | Aki <nthirtyone@gmail.com> | 2017-08-01 03:55:17 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-08-01 03:55:17 +0200 |
commit | 0dbb0a6ef0ee24bd4fbd293cdf40a3f066887bb6 (patch) | |
tree | 9b65202c884319847c28fe174ab4b9d712a329cb /not | |
parent | e44eefe628e27a14ba7523a2951014cde782cf7f (diff) | |
download | roflnauts-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.lua | 6 |
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 |