fixed controls again (stupid me, stop breaking things)

This commit is contained in:
BR 2012-12-17 10:12:44 -08:00
parent 11a54b2a89
commit 6239c60b77

View File

@ -61,7 +61,8 @@ if not map_fname then
end end
-- define keys -- define keys
controls_config = common.json_load(controls_config_filename) controls_config = common.json_load(controls_config_filename) or {}
setmetatable(controls_config, {__index = function() return nil end})
BTSK_FORWARD = controls_config.forward or SDLK_w BTSK_FORWARD = controls_config.forward or SDLK_w
BTSK_BACK = controls_config.back or SDLK_s BTSK_BACK = controls_config.back or SDLK_s
BTSK_LEFT = controls_config.left or SDLK_a BTSK_LEFT = controls_config.left or SDLK_a