about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2007-06-01 12:02:27 +0000
committerJakob Fries <jakob.fries@gmail.com>2007-06-01 12:02:27 +0000
commit187134010dd73dda83a735859195c4a52276fef5 (patch)
treedecd4fa8731188a1681bb85d17b97b2b5aa02941 /src/game
parent4e5fa4db0b325e1f0f3a0e07549e26b5ef77dc2f (diff)
downloadzcatch-187134010dd73dda83a735859195c4a52276fef5.tar.gz
zcatch-187134010dd73dda83a735859195c4a52276fef5.zip
config stuff
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)