about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2007-07-21 17:43:00 +0000
committerJakob Fries <jakob.fries@gmail.com>2007-07-21 17:43:00 +0000
commitd3986a36a74ce7afd86397e428fd4abd3047f669 (patch)
tree18cf0fe14193db1018a636e0b0b5ed02278e374e /src/engine
parent2899ef7ec59be52d155a5fab6b3654e900594b5d (diff)
downloadzcatch-d3986a36a74ce7afd86397e428fd4abd3047f669.tar.gz
zcatch-d3986a36a74ce7afd86397e428fd4abd3047f669.zip
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/client.cpp2
-rw-r--r--src/engine/config_variables.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index f3a345aa..57b3bd57 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -636,6 +636,8 @@ int main(int argc, char **argv)
 	config_reset();
 	config_load("teewars.cfg");
 
+	snd_set_master_volume(config.volume / 255.0f);
+
 	netaddr4 server_address(127, 0, 0, 1, 8303);
 	//const char *name = "nameless jerk";
 	bool connect_at_once = false;
diff --git a/src/engine/config_variables.h b/src/engine/config_variables.h
index 590393bc..788c0e7d 100644
--- a/src/engine/config_variables.h
+++ b/src/engine/config_variables.h
@@ -4,6 +4,7 @@ MACRO_CONFIG_INT(screen_width, 800, 0, 0)
 MACRO_CONFIG_INT(screen_height, 600, 0, 0)
 MACRO_CONFIG_INT(fullscreen, 1, 0, 1)
 MACRO_CONFIG_INT(color_depth, 24, 16, 24)
+MACRO_CONFIG_INT(volume, 200, 0, 255)
 MACRO_CONFIG_STR(player_name, 32, "nameless tee")
 MACRO_CONFIG_STR(clan_name, 32, "")
 MACRO_CONFIG_STR(password, 32, "")