about summary refs log tree commit diff
path: root/src/game/client/gc_hooks.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 12:36:24 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-23 12:36:24 +0000
commit960dd7b7840840da2e8f201cd9761e9d9f28248e (patch)
treef48c3ebe318416b710948d0ff357102cce57f08f /src/game/client/gc_hooks.cpp
parent10ea1a90c219805c8215cc2c6104b8b739ec753a (diff)
downloadzcatch-960dd7b7840840da2e8f201cd9761e9d9f28248e.tar.gz
zcatch-960dd7b7840840da2e8f201cd9761e9d9f28248e.zip
removed the threaded loading of sounds. fixed the custom coloring of the tees
Diffstat (limited to 'src/game/client/gc_hooks.cpp')
-rw-r--r--src/game/client/gc_hooks.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp
index 601575f3..82ec33e2 100644
--- a/src/game/client/gc_hooks.cpp
+++ b/src/game/client/gc_hooks.cpp
@@ -33,7 +33,7 @@ extern "C" void modc_console_init()
 
 //binds_save()
 
-static void load_sounds_thread(void *)
+/*static void load_sounds_thread(void *)
 {
 	// load sounds
 	for(int s = 0; s < data->num_sounds; s++)
@@ -45,7 +45,7 @@ static void load_sounds_thread(void *)
 			data->sounds[s].sounds[i].id = id;
 		}
 	}
-}
+}*/
 
 extern "C" void modc_init()
 {
@@ -81,7 +81,7 @@ extern "C" void modc_init()
 	// TODO: should be removed
 	snd_set_listener_pos(0.0f, 0.0f);
 
-	float total = data->num_images;
+	float total = data->num_images+data->num_sounds;
 	float current = 0;
 	
 	// load textures
@@ -95,10 +95,9 @@ extern "C" void modc_init()
 	skin_init();
 	
 	//load_sounds_thread(0);
-	thread_create(load_sounds_thread, 0);
+	//thread_create(load_sounds_thread, 0);
 
 	// load sounds
-	/*
 	for(int s = 0; s < data->num_sounds; s++)
 	{
 		render_loading(current/total);
@@ -114,8 +113,7 @@ extern "C" void modc_init()
 		}
 
 		current++;
-	}*/
-	
+	}
 	
 	int64 end = time_get();
 	dbg_msg("", "%f.2ms", ((end-start)*1000)/(float)time_freq());