From 6239c60b779e021a0583c064861480e80c31cb7d Mon Sep 17 00:00:00 2001 From: BR Date: Mon, 17 Dec 2012 10:12:44 -0800 Subject: [PATCH] fixed controls again (stupid me, stop breaking things) --- pkg/base/client_start.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/base/client_start.lua b/pkg/base/client_start.lua index 8cdf22e..86c189b 100644 --- a/pkg/base/client_start.lua +++ b/pkg/base/client_start.lua @@ -61,7 +61,8 @@ if not map_fname then end -- 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_BACK = controls_config.back or SDLK_s BTSK_LEFT = controls_config.left or SDLK_a