about summary refs log tree commit diff
path: root/src/game/client/menu.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 21:26:20 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 21:26:20 +0000
commit79db096df194008dd3eccff985370417904103fa (patch)
tree456f5d35874dfdb0a01f6b12329baba4e3686ddd /src/game/client/menu.cpp
parent2734ecb6dca76e6f900cf86c42dd15df385d0d4f (diff)
downloadzcatch-79db096df194008dd3eccff985370417904103fa.tar.gz
zcatch-79db096df194008dd3eccff985370417904103fa.zip
fixed so that the music is turned off ingame
Diffstat (limited to 'src/game/client/menu.cpp')
-rw-r--r--src/game/client/menu.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index 41ef9307..41ccd828 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -196,9 +196,6 @@ void draw_background(float t)
     gfx_quads_end();
 }
 
-static int music_menu;
-static int music_menu_id = -1;
-
 void draw_image_button(void *id, const char *text, int checked, float x, float y, float w, float h, void *extra)
 {
 	ui_do_image(*(int *)id, x, y, w, h);
@@ -1292,9 +1289,6 @@ void modmenu_init()
 
 	// TODO: should be removed
     current_font->font_texture = gfx_load_texture("data/big_font.png");
-
-	// TODO: should be removed
-	music_menu = snd_load_wav("data/audio/Music_Menu.wav");
 }
 
 void modmenu_shutdown()
@@ -1306,12 +1300,6 @@ int modmenu_render()
 	static int mouse_x = 0;
 	static int mouse_y = 0;
 
-	if (music_menu_id == -1)
-	{
-		dbg_msg("menu", "no music is playing, so let's play some tunes!");
-		music_menu_id = snd_play(music_menu, SND_LOOP);
-	}
-
     // handle mouse movement
     float mx, my;
     {
@@ -1347,12 +1335,6 @@ int modmenu_render()
     gfx_quads_drawTL(mx,my,24,24);
     gfx_quads_end();
 
-	if (r)
-	{
-		snd_stop(music_menu_id);
-		music_menu_id = -1;
-	}
-
 	input::clear_char();
 	input::clear_key();