From 0511e1152a13ad99b51a819a75ef457404e86d4c Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 29 Aug 2008 05:34:18 +0000 Subject: added sound component --- src/game/client/components/players.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/game/client/components/players.cpp') diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 3178b82f..ed8d0c17 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -1,8 +1,3 @@ - -extern "C" { - #include -} - #include #include #include @@ -17,6 +12,7 @@ extern "C" { #include #include #include +#include #include "players.hpp" @@ -178,7 +174,7 @@ void PLAYERS::render_player( static int64 skid_sound_time = 0; if(time_get()-skid_sound_time > time_freq()/10) { - snd_play_random(CHN_WORLD, SOUND_PLAYER_SKID, 0.25f, position); + gameclient.sounds->play(SOUNDS::CHN_WORLD, SOUND_PLAYER_SKID, 0.25f, position); skid_sound_time = time_get(); } -- cgit 1.4.1