about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2007-07-24 08:49:03 +0000
committerJoel de Vahl <joel@stalverk80.se>2007-07-24 08:49:03 +0000
commitcdc1655b33a34f46da4fec11e29b5b34a4cb2e4e (patch)
tree44f26cd8d3a68f2572b3679f6fd39dbaad966d06
parent40eaf9431b1b3d31e999c973abd29b07065b9b3c (diff)
downloadzcatch-cdc1655b33a34f46da4fec11e29b5b34a4cb2e4e.tar.gz
zcatch-cdc1655b33a34f46da4fec11e29b5b34a4cb2e4e.zip
Fixed sound bug and made things compile.
-rw-r--r--src/engine/client/snd.cpp1
-rw-r--r--src/game/client/menu.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/client/snd.cpp b/src/engine/client/snd.cpp
index 68b8d23f..974b6edd 100644
--- a/src/engine/client/snd.cpp
+++ b/src/engine/client/snd.cpp
@@ -168,6 +168,7 @@ public:
 				channels[c].loop = loop;
 				channels[c].vol = vol * GLOBAL_VOLUME_SCALE;
 				channels[c].pan = pan;
+				channels[c].stop = -1;
 				channels[c].lerp = -1;
 				sound->last_played = time_get();
 				return c;
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index 4eef008c..373da6e6 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -705,7 +705,7 @@ static int main_render()
 	{
 		inited = true;
 
-		client_serverbrowse_refresh();
+		client_serverbrowse_refresh(0);
 	}
 
 	static int scoll_index = 0, selected_index = -1;
@@ -727,7 +727,7 @@ static int main_render()
 	static int refresh_button, join_button, quit_button;
 
 	if (ui_do_button(&refresh_button, "Refresh", 0, 20, 420, 170, 48, draw_teewars_button))
-		client_serverbrowse_refresh();
+		client_serverbrowse_refresh(0);
 
 	/*if (selected_index == -1)
 	{