about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/menu.cpp1
-rw-r--r--src/game/config_variables.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index 35ee66af..e110ebc5 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -891,6 +891,7 @@ static int settings_screen_render()
 	if (ui_do_button(&save_button, "Save", 0, 482, 490, 128, 48, draw_teewars_button))
 	{
 		config = config_copy;
+		config_save("teewars.cfg");
 		screen = 0;
 	}
 	
diff --git a/src/game/config_variables.h b/src/game/config_variables.h
new file mode 100644
index 00000000..0b1fed7e
--- /dev/null
+++ b/src/game/config_variables.h
@@ -0,0 +1,8 @@
+MACRO_CONFIG_INT(screen_width, 800, 0, 0)
+MACRO_CONFIG_INT(screen_height, 600, 0, 0)
+MACRO_CONFIG_STR(player_name, 32, "nameless tee")
+MACRO_CONFIG_INT(key_move_left, 65, 32, 127)
+MACRO_CONFIG_INT(key_move_right, 68, 32, 127)
+MACRO_CONFIG_INT(key_jump, 32, 32, 127)
+MACRO_CONFIG_INT(key_fire, 33, 32, 127)
+MACRO_CONFIG_INT(key_hook, 34, 32, 127)