about summary refs log tree commit diff
path: root/src/game/client/gc_client.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
commit0511e1152a13ad99b51a819a75ef457404e86d4c (patch)
treed8e31b98f18f7e027ee72a9792248072d93e5852 /src/game/client/gc_client.cpp
parentb22dd1488cdae53d27215fda051fea9bfc72ac1d (diff)
downloadzcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.tar.gz
zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.zip
added sound component
Diffstat (limited to 'src/game/client/gc_client.cpp')
-rw-r--r--src/game/client/gc_client.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
deleted file mode 100644
index 2418b6ea..00000000
--- a/src/game/client/gc_client.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
-#include <base/math.hpp>
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-extern "C" {
-	#include <engine/e_client_interface.h>
-};
-
-#include "../gamecore.hpp"
-#include "../version.hpp"
-#include "../layers.hpp"
-#include "gc_map_image.hpp"
-#include "../generated/gc_data.hpp"
-#include "gc_ui.hpp"
-#include "gc_client.hpp"
-#include "gc_render.hpp"
-
-#include "components/skins.hpp"
-#include "components/damageind.hpp"
-#include "gameclient.hpp"
-
-TUNING_PARAMS tuning;
-
-void snd_play_random(int chn, int setid, float vol, vec2 pos)
-{
-	SOUNDSET *set = &data->sounds[setid];
-
-	if(!set->num_sounds)
-		return;
-
-	if(set->num_sounds == 1)
-	{
-		snd_play_at(chn, set->sounds[0].id, 0, pos.x, pos.y);
-		return;
-	}
-
-	// play a random one
-	int id;
-	do {
-		id = rand() % set->num_sounds;
-	} while(id == set->last);
-	snd_play_at(chn, set->sounds[id].id, 0, pos.x, pos.y);
-	set->last = id;
-}